??? 04/12/07 05:59 Read: times |
#137016 - LJMP limits Responding to: ???'s previous message |
Mike Stegmaier said:
For example, LJMP #FFFFh won't work if you have 1K of code memory (or memory that contains code).
Any jump outside of coded memory will produce undesired/undefined results. And that applies not only to LJMP. The only other restriction is that you can't go past #FFFFh. Can't you? I thought (but I may be wrong) that if the PC reached $FFFF and incremented again, $0000 would be the result... This is a 16 bit address bus and PC... depending on the contents of location $FFFF, $0000 would be treated as an operand, or as an opcode, the latter resulting in a reset I would assume... BTW: what is LJMP #FFFF? I can only find "LJMP addr16" in the opcode list, and that would translate to LJMP FFFF... Or did I miss something? rgdqs Patrick |