Fujitsu F2MC-8L F202RA Hardware Manual page 402

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

APPENDIX B Overview of the Instructions
Figure B.1-8 shows an example.
CALL V #5
● Relative Addressing
The addressing, which is indicated by rel in the instructions list, is used for branching to the area of 128
bytes before or after the PC (program counter). In this addressing, the contents of the operand with a sign
are added to the PC. The results are then stored in the PC.
Figure B.1-9 shows an example.
Old PC
In this example, the control jumps to the address holding the operation code of BNE, causing an endless
loop.
● Inherent addressing
This addressing, which has no operand in the instructions list, is used for performing an operation
determined on the basis of the operation code. In this addressing, the operations differ depending on the
instructions.
Figure B.1-10 shows an example.
386
Figure B.1-8 Example of Vector Addressing
(Conversion)
F F C A
F F C B
Figure B.1-9 Example of Relative Addressing
B NE FEH
9 A B C
H
Figure B.1-10 Example of Inherent Addressing
NOP
Old PC
9 A B C
H
F E
H
H
PC
F E D C
D C
H
H
9ABC
+ FFFE
H
H
New PC
H
New PC
9 A B A
H
9 A B D
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents