1.include "macros.inc" 2 3start 4 5test_name LBU_1 6load r1 data 7lbu r3, (r1+0) 8check_r3 0x7e 9 10test_name LBU_2 11lbu r3, (r1+1) 12check_r3 0x7f 13 14test_name LBU_3 15lbu r3, (r1+-1) 16check_r3 0x7d 17 18test_name LBU_4 19load r1 data_msb 20lbu r3, (r1+0) 21check_r3 0xfe 22 23test_name LBU_5 24lbu r3, (r1+1) 25check_r3 0xff 26 27test_name LBU_6 28lbu r3, (r1+-1) 29check_r3 0xfd 30 31test_name LBU_7 32load r3 data 33lbu r3, (r3+0) 34check_r3 0x7e 35 36end 37 38.data 39 .align 4 40 .byte 0x7a, 0x7b, 0x7c, 0x7d 41data: 42 .byte 0x7e, 0x7f, 0x70, 0x71 43 .byte 0xfa, 0xfb, 0xfc, 0xfd 44data_msb: 45 .byte 0xfe, 0xff, 0xf0, 0xf1 46