From 0df8468808e922f694de264cae59762ff484b67e Mon Sep 17 00:00:00 2001 From: Oxore Date: Tue, 2 May 2023 00:07:04 +0300 Subject: Impl LEA --- test.bash | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test.bash') 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" -- cgit v1.2.3