HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 142

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
An example of the use of modulo addressing is shown below.
The start and end addresses are specified in MS and ME, then the DMX or DMY bit is set to 1.
When the X or Y data transfer instruction specified by the DMX or DMY is executed, the address
register contents before updating are compared with ME*, and if they match, start address MS is
stored in the address register as the value after updating.
When the addressing type of the X/Y data transfer instruction is no-update, the X/Y data transfer
instruction is not returned to MS even if they match ME. When the addressing type of the X/Y
data transfer is adding index register, address pointer is may not match and exceed ME. In this
case, the modulo start address is not set as the address pointer.
The maximum modulo size is 64 kbytes. This is sufficient to access the X and Y data memory.
Note: Not only with modulo addressing, but when X and Y data addressing is used, bit 0 is
Rev. 1.00, 02/04, page 104 of 804
MOV.L #H’70047000, R10
LDC Rn,MOD
STC SR, R10
MOV.L #H’FFFFF3FF, R11
MOV.L #H’00000400, R12
AND R11, R10
OR R12, R10
LDC R10, SR
MOV.L #H’A5007000, R14
MOVX.W @R4+,X0
MOVX.W @R4+,X0
MOVX.W @R4+,X0
MOVX.W @R4+,X0
ignored. 0 must always be written to bit 0 of the address pointer, index register, MS, and
ME.
;Specify ME:MS to MOD register
;
;
;
; Specify SR.MDX=1, SR.MDY=0, and
; R4: H’A5007000→ H’A5007002
; R4: H’A5007002→ H’A5007004
; R4: H’A5007004→ H’A5007000
; R4: H’A5007000→ H’A5007002
X modulo addressing mode
(Matches to ME and MS is set)
;Specify MS=H’7000 ME = H’7004
;
;

Related parts for HD6417660