Fujitsu Semiconductor Controller MB89950/950A Hardware Manual page 287

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

G
Relative addressing
Relative addressing is indicated by rel in the instruction list. This addressing is used to branch to within the
area between the address 128 bytes higher and that 128 bytes lower relative to the address contained in the
PC (program counter). In this addressing mode, the result of a signed addition of the contents of the
operand to the PC is stored in the PC. Figure B.2-9 "Example of relative addressing" shows an example.
9 A B C
Previous PC
In this example, a branch to the address of the BNE operation code occurs, thus resulting in an infinite
loop.
G
Inherent addressing
Inherent addressing is indicated as the addressing without operands in the instruction list. This addressing is
used to perform the operation determined by the operation code. In this addressing mode, different
operations are performed via different instructions. Figure B.2-10 "Example of inherent addressing" shows
an example.
NOP
9 A B C
Previous PC
Figure B.2-9 Example of relative addressing
BNE F EH
9ABC
+ FFFE
H
H
Figure B.2-10 Example of inherent addressing
H
APPENDIX B Overview of Instructions
H
Current PC
9 A B D
Current PC
9 A B A
H
H
273

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents