Fujitsu F2MC-16LX Hardware Manual page 543

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

❍ Program counter relative branch addressing (rel)
The address of the branch destination is a value determined by adding an 8-bit offset to the
program counter (PC) value. If the result of addition exceeds 16 bits, bank register incrementing
or decrementing is not performed and the excess part is ignored, and therefore the address is
contained within a 64-kilobyte bank. This addressing is used for both conditional and
unconditional branch instructions. Address bits 16 to 23 are indicated by the program bank
register (PCB).
Figure B.4-7 Example of program counter relative branch addressing (rel)
BRA 3B20H
Before execution
After execution
❍ Register list (rlst)
Specify a register to be pushed onto or popped from a stack.
A register is selected when the corresponding bit is 1 and deselected when the bit is 0.
(This instruction causes an unconditional relative branch.)
PC
3 C 2 0
PCB
PC
3 B 2 0
PCB
Figure B.4-8 Configuration of the register list
MSB
RW7 RW6 RW5 RW4 RW3 RW2 RW1 RW0
APPENDIX B Instructions
4 F
Memory space
4F3C22H
F F
4F3C21H
F E
4F3C20H
6 0
4 F
4F3B20H
Next instruction
LSB
BRA 3B20H
527

Advertisement

Table of Contents
loading

Table of Contents