Fujitsu F2MC-8FX Hardware Manual page 579

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents