Fujitsu Semiconductor Controller MB89950/950A Hardware Manual page 284

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

APPENDIX
G
Bit direct addressing
Bit direct addressing is indicated by dir:b in the instruction list. This addressing is used to access a
particular bit in the area between 0000
is 00
and the lower byte is specified by the operand. The bit position at the address is specified by the
H
lower three bits of the operation code.
Figure B.2-3 "Example of bit direct addressing" shows an example.
G
Index addressing
Index addressing is indicated by @IX+off in the instruction list. This addressing is used to access the entire
64-KB area. In this addressing mode, the address is the value resulting from sign-extending the contents of
the first operand and adding them to IX (index register). Figure B.2-4 "Example of index addressing"
shows an example.
MOVW A, @IX+5 A
IX
G
Pointer addressing
Pointer addressing is indicated by @EP in the instruction list. This addressing is used to access the entire
64-KB area. In this addressing mode, the address is contained in EP (extra pointer). Figure B.2-5 "Example
of pointer addressing" shows an example.
MOVW A, @EP
EP
270
Figure B.2-3 Example of bit direct addressing
SETB 34
: 2
H
0 0 3 4
Figure B.2-4 Example of index addressing
H
2 7 A 5
2 7 F F
H
2 8 0 0
Figure B.2-5 Example of pointer addressing
2 7 A 5
2 7 A 5
H
2 7 A 6
and 00FF
. In this addressing mode, the higher byte of the address
H
H
7 6 5 4 3 2 1 0
X X X X X 1 X X
H
B
1 2
H
H
A
1 2 3 4
3 4
H
H
1 2
H
H
A
1 2 3 4
3 4
H
H
H
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents