1.include "macros.inc" 2 3start 4 5test_name BRET_1 6mvi r1, 4 7wcsr IE, r1 8load ba mark 9bret 10tc_fail 11bi 1f 12 13mark: 14tc_pass 15 161: 17test_name BRET_2 18rcsr r3, IE 19check_r3 5 20 21test_name BRET_3 22mvi r1, 0 23wcsr IE, r1 24load ba mark2 25bret 26tc_fail 27bi 1f 28 29mark2: 30tc_pass 31 321: 33test_name BRET_4 34rcsr r3, IE 35check_r3 0 36 37end 38 39