English
Language : 

SH7616 Datasheet, PDF (86/935 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH™ RISC engine Family/SH7600 Series
Section 2 CPU
Instruction (MOVX/MOVY)
31 16 15 0 DMX DMY 31 16 15 0
31
0
R4[Ax]
R6[Ay]
31
0
R8[Ix]
+2
+0
R5[Ax]
CONT
15
1
R7[Ay]
R9[Iy]
+2
+0
MS
ALU
AU
CMP
ABx
ME
ABy
15
1 15
1 15
1
XAB
YAB
Figure 2.11 Modulo Addressing
An example of modulo addressing is indicated below:
MS=H'E008; ME=H'E00C; R4=H'1000E008;
DMX=1; DMY=0; (sets modulo addressing for address register Ax (R4, R5))
The R4 register changes as follows due to the above settings.
Inc.
Inc.
Inc.
R4: H'1000E008
R4: H'1000E00A
R4: H'1000E00C
R4: H'1000E008
(becomes the modulo start address because the modulo end
address occurred)
Data is placed so that the upper 16 bits of the modulo start and end addresses become identical.
This is so because the modulo start address replaces only the lower 15 bits of the address register,
excepting bit 0.
Note:
When using add index with DSP data addressing, there are cases where the value is
exceeded without the address pointer matching the ME. In such cases, the address pointer
does not return to the modulo start address. Bit 0 is disregarded not only for modulo
addressing, but also during X, Y data addressing, so always write 0 to the 0 bits of the
address pointer, index register, MS, and ME.
Rev. 2.00 Mar 09, 2006 page 60 of 906
REJ09B0292-0200