summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-01 11:55:01 +0300
committerOxore <oxore@protonmail.com>2023-05-01 11:55:01 +0300
commit2a4c7440706e57887c0d92397dc5aafce0a3932e (patch)
tree4d5e2ff5582d6d81e5c6c16b3e32022a3a523191
parentc04ca8aab1ad9811372738113cfb5365ec056516 (diff)
Add some tests for MOVEA
-rw-r--r--test.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/test.bash b/test.bash
index c95d3ad..1704c44 100644
--- a/test.bash
+++ b/test.bash
@@ -102,6 +102,8 @@ run_test_simple "movew (xxx).L to Dn" "\x30\x39\xaa\xaa\xaa\xaa"
run_test_simple "movew (d16,PC) to Dn" "\x30\x3a\x3f\xff"
run_test_simple "movew (d8,PC,Xi) to Dn" "\x30\x3b\xa0\x80"
run_test_simple "movew #imm to Dn" "\x30\x3c\xa5\xa5"
+run_test_simple "moveaw Dn" "\x30\x41"
+run_test_simple "moveaw #imm" "\x30\x7c\xa8\x90"
# 2xxx [xxxx [xxxx]]
#
@@ -117,6 +119,8 @@ run_test_simple "movel (xxx).L to Dn" "\x24\x39\x00\x00\x78\x90"
run_test_simple "movel (d16,PC) to Dn" "\x24\x3a\x78\x20"
run_test_simple "movel (d8,PC,Xi) to Dn" "\x24\x3b\xa8\x90"
run_test_simple "movel #imm to Dn" "\x24\x3c\xa8\x90\x00\x00"
+run_test_simple "moveal Dn" "\x20\x41"
+run_test_simple "moveal #imm" "\x20\x7c\xa8\x90\x00\x00"
# 4890 xxx
#