From 94e17de37b0475d927c9d546ece1e6f39f0ff195 Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 8 May 2023 11:15:31 +0300 Subject: Impl ADD --- test.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test.bash') diff --git a/test.bash b/test.bash index be8a5be..61f7572 100644 --- a/test.bash +++ b/test.bash @@ -93,6 +93,17 @@ run_test_iterative() { done } +# 4xxx add +# +run_test_simple "addb Dn, Dn" "\xd4\x01" +run_test_expect_short "addb An, Dn" "\xd4\x09" +run_test_simple "addw An, Dn" "\xd4\x49" +run_test_simple "addb (An), Dn" "\xd4\x11" +run_test_simple "addb (An)+, Dn" "\xd4\x19" +run_test_simple "addb -(An), Dn" "\xd4\x21" +# GNU AS would emit ADDI for "add #imm,Xn", so we diassemble it as short +run_test_expect_short "addl #imm, D6" "\xd6\xbc\x44\xd1\xe6\xe9" + # 4xxx chkw # run_test_simple "chkw Dn" "\x47\x82" -- cgit v1.2.3