![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_520.png)
496
APPENDIX B INSTRUCTIONS
MB90560 series
B.4
Indirect Addressing
In indirect addressing, the operand specifies indirectly the address of the data.
I
Indirect addressing
G
Register indirect addressing (@RWj j = 0 to 3)
This type of addressing accesses memory at the address indicated by the contents of general-
purpose register RWj. Address bits 16 to 23 are specified by the DTB register if RW0 or RW1 is
used, by the system stack bank register (SSB) or user stack bank register (USB) if RW3 is used,
and by the additional data bank register (ADB) if RW2 is used. Figure B.4-1 shows an example
of register indirect addressing (@RWj, j= 0 to 3).
Figure B.4-1 Example of register indirect addressing (@RWj j = 0 to 3)
G
Register indirect addressing with post-incrementing (@RWj+ j = 0 to 3)
This type of addressing accesses memory at the address indicated by the contents of general-
purpose register RWj. After the operand has been operated on, register RWj is incremented by
the length of the operand data (one for byte length, two for word length, four for long-word
length). Address bits 16 to 23 are specified by the DTB register if RW0 or RW1 is used, by the
SSB or USB register if RW3 is used, and by the ADB register if RW2 is used.
Note that if the results of post-incrementing are the address of the same register that specified
the increment, the value to be referenced after incrementing will be the incremented value. Also,
if a write instruction is used, the write operation will have priority, so that the register that is
supposed to be incremented receives the write data. Figure B.4-2 shows an example of register
indirect addressing with post-incrementing (@RWj+, j = 0 to 3).
Figure B.4-2 Example of register indirect addressing with post-incrementing (@RWj+ j = 0 to 3)
After execution
Before execution
MOVW A, @RW1 (Instruction that reads data using register indirect
addressing and stores it in A)
Memory space
After execution
Before execution
MOVW A, @RW1+ (Instruction that reads data by register indirect
addressing with post-incrementing and stores it in A)
Memory space