1 ; Modular address postincrement/postdecrement test
4 ; program PSW for modular address mode
11 ; set modular address limits: 0x18 bytes
12 add r1,r0,0x20000070 ; [start, ...
14 mvtsys mod_s,r1 || nop
16 add r1,r0,0x20000088 ; ..., end)
18 mvtsys mod_e,r1 || nop
20 ; modular autoincrement test
21 add r30,r0,0x20000070 ; base address = mod_s
22 ld2w r40,@(r30+,r0) || nop ; after: r30 = ...078
23 ld2w r40,@(r30+,r0) || nop ; after: r30 = ...080
24 ld2w r40,@(r30+,r0) || nop ; after: r30 = ...070
26 add r29,r0,0x20000070 ; expected end address; wrapping around
31 ; set modular address limits: 0x18 bytes
32 add r1,r0,0x20000088 ; [start, ...
34 mvtsys mod_s,r1 || nop
36 add r1,r0,0x20000070 ; ..., end)
38 mvtsys mod_e,r1 || nop
40 ; modular autodecrement test
41 add r30,r0,0x20000088 ; base address = mod_s
42 ld2w r40,@(r30-,r0) || nop ; after: r30 = ...080
43 ld2w r40,@(r30-,r0) || nop ; after: r30 = ...078
44 ld2w r40,@(r30-,r0) || nop ; after: r30 = ...088
46 add r29,r0,0x20000088 ; expected end address; wrapping around
52 .long 0x0e000004, 0x00f00000
56 .long 0x0e000004, 0x00f00000