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