beautypg.com

FUJITSU F2MC-8L F202RA User Manual

Page 401

background image

385

General-purpose Register Addressing

The addressing, which is indicated by Ri in the instructions list, is used for accessing the register bank of

the general-purpose register area. In this addressing, the higher one byte of the address is fixed to 01. The

lower one byte is generated from the contents of RP (register bank pointer) and the lower three bits of the

operation code. The address is then accessed.

Figure B.1-6 shows an example.

Figure B.1-6 Example of General-purpose Register Addressing

Immediate Addressing

The addressing, which is indicated by #d8 in the instructions list, is used when immediate data is required.

In this addressing, the operand directly becomes the immediate data. The specification of byte/word is

determined using the operation code.

Figure B.1-7 shows an example.

Figure B.1-7 Example of Immediate Addressing

Vector Addressing

The addressing, which is indicated by vct in the instructions list, is used for branching to a subroutine

registered in the table. In this addressing, the operation code includes the vct information, with the

addresses generated on the basis of the correspondence with the contents of Table B.1-1 .

0 1 5 6

MOV A, R 6

A B

H

A

A B

H

0 1 0 1 0

B

RP

H

MOV A, # 56

H

56

H

A

Table B.1-1 Vector Table Address Corresponding to vct

#vct

Vector table address (Jump destination, higher address:lower address)

0

FFCO

H

: FFC1

H

1

FFC2

H

: FFC3

H

2

FFC4

H

: FFC5

H

3

FFC6

H

: FFC7

H

4

FFC8

H

: FFC9

H

5

FFCA

H

: FFCB

H

6

FFCC

H

: FFCD

H

7

FFCE

H

: FFCF

H

This manual is related to the following products: