summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-08 12:14:31 +0300
committerOxore <oxore@protonmail.com>2023-05-08 12:14:31 +0300
commit5c8aedf98c462387ad073698918d5cb7d9965a4b (patch)
tree64d7dca9a51a48e97e74ca978802848f25907d90 /test.bash
parent94e17de37b0475d927c9d546ece1e6f39f0ff195 (diff)
Impl ADDA, optimize some arg parsing
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 61f7572..a757ea5 100644
--- a/test.bash
+++ b/test.bash
@@ -93,6 +93,14 @@ run_test_iterative() {
done
}
+# 4xxx adda
+#
+run_test_simple "addaw Dn, An" "\xd4\xc1"
+run_test_simple "addal An, An" "\xdb\xca"
+run_test_simple "addaw (An)+, An" "\xdb\xda"
+run_test_simple "addaw #imm, An" "\xda\xfc\x01\x00"
+run_test_simple "addal #imm, An" "\xdb\xfc\x80\x00\x00\x00"
+
# 4xxx add
#
run_test_simple "addb Dn, Dn" "\xd4\x01"