beautypg.com

FUJITSU Semiconductor Controller MB89950/950A User Manual

Page 285

background image

271

APPENDIX B Overview of Instructions

General-purpose register addressing

General-purpose register addressing is indicated by Ri in the instruction list. This addressing is used to

access a register bank in the general-purpose register area. In this addressing mode, the higher byte of the

address is always 01 and the lower byte is specified based on the contents of RP (register bank pointer) and

the lower three bits of the operation code. Figure B.2-6 "Example of general-purpose register addressing"

shows an example.

Figure B.2-6 Example of general-purpose register addressing

Immediate addressing

Immediate addressing is indicated by #d8 in the instruction list. This addressing is used when immediate

data is required. In this addressing mode, the operand is used as immediate data. Whether the data is

specified in bytes or words is determined by the operation code. Figure B.2-7 "Example of immediate

addressing" shows an example.

Figure B.2-7 Example of immediate addressing

0 1 5 6

H

MOV A, R 6

AB

H

A

A B

H

0 1 0 1 0

B

RP

MOV A, #56

H

5 6

H

A