1.include "t-macros.i" 2 3 start 4 5 ; Test ld and st 6 ld r4, @foo 7 check 1 r4 0xdead 8 9 ldi r4, #0x2152 10 st r4, @foo 11 ld r4, @foo 12 check 2 r4 0x2152 13 14 ; Test ld2w and st2w 15 ldi r4, #0xdead 16 st r4, @foo 17 ld2w r4, @foo 18 check2w2 3 r4 0xdead 0xf000 19 20 ldi r4, #0x2112 21 ldi r5, #0x1984 22 st2w r4, @foo 23 ld2w r4, @foo 24 check2w2 4 r4 0x2112 0x1984 25 26 .data 27 .align 2 28foo: .short 0xdead 29bar: .short 0xf000 30 .text 31 32 exit0 33