summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
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 9bde77c..d615b32 100644
--- a/test.bash
+++ b/test.bash
@@ -93,6 +93,14 @@ run_test_iterative() {
done
}
+# 4xxx lea
+#
+run_test_simple "lea (An)" "\x41\xd0"
+run_test_simple "lea (d16,An)" "\x47\xe9\x80\x00"
+run_test_simple "lea (d8,An,Xi)" "\x47\xf2\xa8\x7f"
+run_test_simple "lea (d16,PC)" "\x47\xfa\x7f\xff"
+run_test_simple "lea (d8,PC,Xi)" "\x47\xfb\xa8\x80"
+
# 0xxx movep
#
run_test_simple "movepw Dn to (An)" "\x01\x0b\x00\xa0"