Memory indirect |
Addressing for branching by storing the destination address in the memory and specifying it. This is written in the following format: @@ address Memory indirect is available only for the JSR and JMP instructions. An even-numbered address between H’000000 and H’0000FC can be specified for an instruction. Not all addresses can be used freely, however, since other exception handling functions also use the same range. |
Sample: JMP @@H'10 Branches to the address stored in the H'10 address. |
Although the destination is written with 32 bits in the memory, only the lower 24 bits are used. An even address must be specified by an instruction. The address of the memory storing the destination can also be specified using a symbol. The assembler converts a written symbol into an address, which is assumed to be the destination. |
Sample: JMP @@WORK Branches to the address written in the WORK address. |