
<
2
.75
7UGT U/CPWCN
#FFTGUUKPI/QFGU
=L/2*
7/<:
RELATIVE ADDRESSING (RA)
In the Relative Addressing mode, illustrated in Figure 2-7, the instruction specifies a two’s-complement
signed displacement in the range of
–
128
to
+127
. This is added to the contents of the Program Counter to
obtain the address of the next instruction to be executed. The PC (prior to the add) consists of the address of
the instruction following the Jump Relative (
JR
) or Decrement and Jump if Non-Zero (
DJNZ
) instruction.
JR
and
DJNZ
are the only instructions which use this addressing mode.
Figure 2-7. Retrieve Addressing
OpCode
Displacement
Next OpCode
Current
JR or DJNZ
Program Memory
Program Memory
Address Used
PC Value