summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-01 13:45:29 +0300
committerOxore <oxore@protonmail.com>2023-05-01 13:45:29 +0300
commit1429da758d47cef110e86824380f77d7d5aa02ff (patch)
tree50c7c919e37c18dfac2fd8a12b2dc8f311309e2f /test.bash
parent3a56a664e444a28acb96c1ad035654dc408fae72 (diff)
Impl MOVE USP, LINK, UNLK and ILLEGAL
Diffstat (limited to 'test.bash')
-rw-r--r--test.bash12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.bash b/test.bash
index f503abe..371f535 100644
--- a/test.bash
+++ b/test.bash
@@ -93,6 +93,18 @@ run_test_iterative() {
done
}
+# 4e5x
+#
+run_test_simple "linkw positive" "\x4e\x52\x01\x00"
+run_test_simple "linkw negative" "\x4e\x52\xff\xff"
+run_test_simple "linkw negative" "\x4e\x52\x80\x00"
+run_test_simple "unlk" "\x4e\x5a"
+
+# 4e6x
+#
+run_test_simple "move to USP" "\x4e\x62"
+run_test_simple "move from USP" "\x4e\x6f"
+
# 40c0..40ff
#
run_test_simple "move from SR" "\x40\xc1"