Relative addressing
This is used when branching to the area in 128 bytes before and behind PC (program counter) with the
addressing shown "rel" in the instruction table. In this addressing, add the content of the operand to PC with
the sign and store the result in PC. Figure C.1-9 shows an example.
Figure C.1-9 Example of Relative Addressing
Old PC
9 A B C
In this example, by jumping to the address where the operation code of BNE is stored, it results in an
infinite loop.
Inherent addressing
This is used when doing the operation decided by the operation code with the addressing that does not have
the operand in the instruction table. In this addressing, the operation depends on each instruction. Figure
C.1-10 shows an example.
Figure C.1-10 Example of Inherent Addressing
NOP
Old PC
9 A B C
BNE FEH
9ABC
H
H
H
APPENDIX C Instruction Overview
+ FFFE
H
New PC
New PC
9 A B D
9 A B A
H
H
565