MB95630H Series
612
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-1v0-E
APPENDIX A Instruction Overview
A.1 Addressing
●
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 A.1-9 shows an example.
Figure A.1-9 Example of Relative Addressing
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 A.1-10 shows an example.
Figure A.1-10 Example of Inherent Addressing
0x9ABA
BNE FEH
New PC
0x9ABC
Old PC
0xFFFE
0x9ABD
NOP
New PC
0x9ABC
Old PC