APPENDIX B Overview of the Instructions
● Bit Direct Addressing
The addressing, which is indicated by dir:b in the instructions list, is used for accessing the area from
0000
to 00FF
H
lower one byte with the operand; and the bit position in the specified address with the lower three bits of
the operation code.
Figure B.1-3 shows an example.
SETB 34H : 2
● Index addressing
The addressing, which is indicated by @IX(off in the instructions list, is used for accessing the entire area
of 64 KB. In this addressing, the contents of the first operand are signed and added to IX (index register).
Then the results are used as the address.
Figure B.1-4 shows an example.
MOVW A, @IX+5 AH
IX
● Pointer Addressing
The addressing, which is indicated by @EP in the instructions list, is used for accessing the entire area of
64 KB. In this addressing, the contents of EP (extra pointer) are used as the address.
Figure B.1-5 shows an example.
M OVW A, @EP
EP
384
on a per bit basis. In this addressing, the higher one byte of the address is 00
H
Figure B.1-3 Example of Bit Direct Addressing
0 0 3 4
Figure B.1-4 Example of Index Addressing
2 7 A 5
2 7 F F
H
2 8 0 0
Figure B.1-5 Example of Pointer Addressing
2 7 A 5
2 7 A 5
H
2 7 A 6
7 6 5 4 3 2 1 0
X X X X X 1 X X
H
B
1 2
H
H
1 2 3 4
A
3 4
H
H
1 2
H
H
A
1 2 3 4
3 4
H
H
H
H
. Specify the
H