Protocol Builder 3.10 assembler
Moderator: Moderators
Protocol Builder 3.10 assembler
I've just had a small problem with the S3C8 assembler in PB. For some reason it doesn't seem to like LDW RC0,2500H or similar. It disassembles similar code fine, but complains of Value Overflow Error on assembly.
-
mr_d_p_gumby
- Expert
- Posts: 1370
- Joined: Sun Aug 03, 2003 12:13 am
- Location: Newbury Park, CA
Re: Protocol Builder 3.10 assembler
With a few exceptions, the assembler requires that you preceed literal values with a "#". In your example, LDW RC0,#2500H is the proper syntax. Without the "#", it thinks the second argument is a register address, and it gives an error because the value is greater than $FF.pgk wrote:I've just had a small problem with the S3C8 assembler in PB. For some reason it doesn't seem to like LDW RC0,2500H or similar. It disassembles similar code fine, but complains of Value Overflow Error on assembly.
Mike England
Mike,
Thanks for the response, that works, not sure why I didn't try it. However this then leaves an inconsitency between the protocol decode (disassembler) and the assembler, since this shows them as LDW RC0,2500H, so clicking "Load Disassembly" followed by "Assemble" causes the error to be displayed. Clearly this isn't a major issue.
Thanks for the response, that works, not sure why I didn't try it. However this then leaves an inconsitency between the protocol decode (disassembler) and the assembler, since this shows them as LDW RC0,2500H, so clicking "Load Disassembly" followed by "Assemble" causes the error to be displayed. Clearly this isn't a major issue.