Protocol Builder 3.10 assembler

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
pgk
Posts: 113
Joined: Sat Aug 21, 2004 11:53 am
Location: London

Protocol Builder 3.10 assembler

Post 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.
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

Post 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.
pgk
Posts: 113
Joined: Sat Aug 21, 2004 11:53 am
Location: London

Post 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.
Post Reply