summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-01 01:31:21 +0300
committerOxore <oxore@protonmail.com>2023-05-01 01:31:21 +0300
commitc04ca8aab1ad9811372738113cfb5365ec056516 (patch)
tree7ef70f38ddeaf26e6390a1b6064b4d9c23d44db2 /test.bash
parentd38bdcabf534e2c639299f3a8fff8b9e048bbaf4 (diff)
Impl MOVEQ
Diffstat (limited to 'test.bash')
-rw-r--r--test.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/test.bash b/test.bash
index 5d282e8..c95d3ad 100644
--- a/test.bash
+++ b/test.bash
@@ -62,6 +62,14 @@ run_test_iterative() {
done
}
+# 70xx / 72xx/ 74xx / 76xx / 78xx / 7axx / 7cxx / 7exx
+#
+run_test_simple "moveq #0 to D0" "\x70\x00"
+run_test_simple "moveq #1 to D2" "\x74\x01"
+run_test_simple "moveq #127 to D7" "\x7e\x7f"
+run_test_simple "moveq #-1 to D5" "\x7a\xff"
+run_test_simple "moveq #-128 to D1" "\x72\x80"
+
# From random tests
#
run_test_simple "movel %pc@(-16,%a0:l),%a3@+ with nop" "\x26\xfb\x88\xf0\x4e\x71"