summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-08 16:33:37 +0300
committerOxore <oxore@protonmail.com>2023-05-08 16:39:39 +0300
commit8ea1d138088f73e677d623edd8b8ad2427b4e482 (patch)
tree41d17a1a2005b3db84cb479d52b40f20b1c132d4 /test.bash
parentc12ef2015384fd7f35150f058dfb3b3df46dcd2c (diff)
Impl NBCD, SWAP and PEA
Diffstat (limited to 'test.bash')
-rw-r--r--test.bash16
1 files changed, 16 insertions, 0 deletions
diff --git a/test.bash b/test.bash
index cfa3aab..a235521 100644
--- a/test.bash
+++ b/test.bash
@@ -93,6 +93,22 @@ run_test_iterative() {
done
}
+# 48xx nbcd swap pea
+#
+run_test_simple "swapw Dn" "\x48\x47"
+run_test_simple "swapw Dn" "\x48\x42"
+run_test_simple "peal (An)" "\x48\x50"
+run_test_simple "peal (d16,An)" "\x48\x68\x80\x00"
+run_test_simple "peal (d8,An,An)" "\x48\x77\x90\xfe"
+run_test_simple "peal (d16,PC)" "\x48\x7a\x7f\xff"
+run_test_simple "peal (d8,PC,Dn)" "\x48\x7b\x68\xfe"
+run_test_simple "nbcdb Dn" "\x48\x03"
+run_test_simple "nbcdb (An)" "\x48\x14"
+run_test_simple "nbcdb (An)+" "\x48\x1c"
+run_test_simple "nbcdb -(An)" "\x48\x25"
+run_test_simple "nbcdb (d16,An)" "\x48\x28\x80\x00"
+run_test_simple "nbcdb (d8,An,An)" "\x48\x37\x90\xfe"
+
# 48xx ext
#
run_test_simple "extw %d7" "\x48\x87"