summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-02 00:07:04 +0300
committerOxore <oxore@protonmail.com>2023-05-02 00:07:04 +0300
commit0df8468808e922f694de264cae59762ff484b67e (patch)
tree771b439587ddca3031218147d4f7eb5c28cee286 /test.bash
parentf1083d93821cf9e3d9041f451ed8e14474db02f7 (diff)
Impl LEA
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"