aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/hw-trap.ms
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/hw-trap.ms')
-rw-r--r--sim/testsuite/cr16/hw-trap.ms10
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/hw-trap.ms b/sim/testsuite/cr16/hw-trap.ms
new file mode 100644
index 0000000..8c8c185
--- /dev/null
+++ b/sim/testsuite/cr16/hw-trap.ms
@@ -0,0 +1,10 @@
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+# perform trap
+ movw $0,r2
+ movw $0x410,r0
+ pass # the pass macro use the trap 8