1.include "macros.inc"
2
3start
4
5test_name SCALL_1
6mvi r1, 1
7wcsr IE, r1
8# we are running in a semi hosted environment
9# therefore we have to set r8 to some unused system
10# call
11mvi r8, 0
12insn:
13scall
14check_excp 64
15
16test_name SCALL_2
17mv r3, ea
18check_r3 insn
19
20test_name SCALL_3
21rcsr r3, IE
22check_r3 2
23
24end
25