Fujitsu F2MC-16LX Hardware Manual page 641

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

Figure B.4-5 Example of Program Counter Indirect with Displacement (@PC + disp16)
MOVW A, @PC+20H
Before execution
After execution
Register indirect with base index (@RW0 + RW7,@RW1 + RW7)
Addressing mode that uses the address obtained by adding RW0 or RW1 to the contents of general-purpose
register RW7 to access memory. Bit 23 to Bit 16 of the address are indicated by the data bank register
(DTB).
Figure B.4-6 Example of Register Indirect with Base Index (@RW0 + RW7, @RW1 + RW7)
MOVW A, @RW1+RW7
Before execution
After execution
(This instruction reads data by program counter indirect addressing
with an offset and stores it in A.)
A
0 7 1 6
2 5 3 4
PCB
C 5
PC
4 5 5 6
A
2 5 3 4
F F E E
+20
+4
PCB
C 5
PC
4 5 5 A
(This instruction reads data by register indirect addressing
with a base index and stores it in A.)
A
0 7 1 6
RW1
D 3 0 F
RW2
0 1 0 1
A
2 5 3 4
RW1
D 3 0 F
RW7
0 1 0 1
Memory space
C5457B
F F
H
C5457A
E E
H
C5455A
H
C54559
0 0
H
H
C54558
2 0
H
C54557
9 E
H
C54556
7 3
H
MOVW
A, @PC+20H
2 5 3 4
Memory space
78D411
F F
DTB
7 8
H
+
78D410
E E
H
F F E E
DTB
7 8
Appendix B Instruction
625

Advertisement

Table of Contents
loading

Table of Contents