Section 2 CPU
Rev. 2.00 Mar 09, 2006 page 60 of 906
REJ09B0292-0200
Instruction (MOVX/MOVY)
DMX
CONT
MS
CMP
ME
ALU
AU
ABx
ABy
R4[Ax]
R6[Ay]
R5[Ax]
R7[Ay]
R8[Ix]
R9[Iy]
DMY
31
0
0
0
0
1
1
16
16
15
15
15
31
31
31
+2
+0
+2
+0
15
15
1
1
XAB
YAB
15
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.
R4: H'1000E008
Inc.
R4: H'1000E00A
Inc.
R4: H'1000E00C
Inc.
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.
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...