beautypg.com

FUJITSU F2MCTM-16LX User Manual

Page 597

background image

581

APPENDIX B Instructions

Figure B.3-2 Example of Register Direct Addressing

Direct branch addressing (addr16)

Specify an offset explicitly for the branch destination address. The size of the offset is 16 bits, which

indicates the branch destination in the logical address space. Direct branch addressing is used for an

unconditional branch, subroutine call, or software interrupt instruction. Bits 23 to 16 of the address are

specified by the program bank register (PCB).

Figure B.3-3 Example of Direct Branch Addressing (addr16)

MOV R0, A

Before execution

A 0 7 1 6 2 5 3 4

After execution

A 0 7 1 6 2 5 6 4

(This instruction transfers the eight low-order bits of A to the general-purpose
register R0.)

? ?

R0

Memory space

3 4

R0

Memory space

JMP 3B20H

Before execution

PC 3 C 2 0

After execution

(This instruction causes an unconditional branch by direct branch addressing
in a bank.)

PCB 4 F

PC 3 B 2 0

PCB 4 F

4F3C22H 3 B
4F3C21H 2 0
4F3C20H 6 2 JMP 3B20H

Memory space

Next instruction

4F3B20H