UM012811-0904
Addressing
Modes
eZ8 CPU
User Manual
28
Figure 15. Relative Addressing
IMMEDIATE DATA ADDRESSING (IM)
Immediate data is considered an “addressing mode” for this discussion. It is the only
addressing mode that does not indicate a register or memory address as the operand. The
operand value used by the instruction is the value supplied in the operand field itself.
Because an immediate operand is part of the instruction, it is always located in the Pro-
gram Memory address space (see Figure 16).
8-bit Value
Program Memory
-128 to +127
One Operand
Instruction
(Example)
Opcode
Displacement
Next Opcode
Next Opcode
if Jump
16-bit Program
Memory address
is PC[15:0] + d[7:0]
if no Jump
+
PC[15:0]
d
If Jump taken,
PC[15:0] = PC[15:0] + d[7:0]
16-bit Program
Memory address
is PC[15:0]