diff --git a/run-tests.sh b/run-tests.sh index 19333b2..70f103e 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -54,6 +54,7 @@ run_one jmptab "[00] 00000007" "Hello." NONDET=1 FAIL=1 run_one trap "Illegal memory reference" "00002000" +run_one trap2 "Illegal memory reference" "00002000" ulimit -t 2 OPTIONS="clock" diff --git a/tests/trap2.uasm b/tests/trap2.uasm new file mode 100644 index 0000000..d6e3522 --- /dev/null +++ b/tests/trap2.uasm @@ -0,0 +1,13 @@ +.include beta.uasm + +. = 0 + + BR(start) +illop: + HALT() +fail: + HALT() +start: + + LDR(0x2000, R31) + HALT()