1.include "macros.inc" 2 3start 4 5test_name SH_1 6load r1 data 7load r2 0xf0f1aaaa 8sh (r1+0), r2 9check_mem data 0xaaaa0000 10 11test_name SH_2 12load r1 data 13load r2 0xf0f1bbbb 14sh (r1+2), r2 15check_mem data 0xaaaabbbb 16 17test_name SH_3 18load r1 data 19load r2 0xf0f1cccc 20sh (r1+-2), r2 21check_mem data0 0x0000cccc 22 23end 24 25.data 26 .align 4 27data0: 28 .byte 0, 0, 0, 0 29data: 30 .byte 0, 0, 0, 0 31data1: 32 .byte 0, 0, 0, 0 33