Page 1 of 1

Protocol Builder 3.10 assembler

Posted: Tue Sep 07, 2004 11:47 am
by pgk
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.

Re: Protocol Builder 3.10 assembler

Posted: Thu Sep 09, 2004 12:26 am
by mr_d_p_gumby
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.
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.

Posted: Thu Sep 09, 2004 3:11 am
by pgk
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.