UM012811-0904
Addressing
Modes
eZ8 CPU
User Manual
27
Figure 14. Direct Addressing
RELATIVE ADDRESSING (RA)
Figure 15 illustrates the Relative Addressing mode. The instruction specifies a two’s com-
plement signed displacement in the range of –128 to +127. This instruction, added to the
contents of the Program Counter, obtains the address of the next instruction to be exe-
cuted. Prior to the addition operation, the Program Counter contains the address of the
instruction immediately following the current relative addressing instruction. The JR and
DJNZ instructions are the only instructions that use this mode.
16-bit Direct
Program Memory
Address
Two Operand
Instruction
(Example)
Opcode
DA[15:8]
DA[7:0]
Next
Opcode
16-bit Program
Memory address
is DA[15:0]
DA[15:0] written to
Program Counter