summaryrefslogtreecommitdiff
path: root/test.bash
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-08 14:57:10 +0300
committerOxore <oxore@protonmail.com>2023-05-08 14:57:10 +0300
commit9922aef7a58bb29fcfb90ecb5c718f6465e0d6ab (patch)
tree701714ceaf8f1b8919268c19b2b1a938c7bf977b /test.bash
parent6f08b26adb8337feb27e354d9aa2e2470404b5ca (diff)
Impl ASR, ASL, LSR, LSL, ROXR, ROXL, ROR and ROL
Diffstat (limited to 'test.bash')
-rw-r--r--test.bash17
1 files changed, 17 insertions, 0 deletions
diff --git a/test.bash b/test.bash
index 854ac56..b4dd6ac 100644
--- a/test.bash
+++ b/test.bash
@@ -93,6 +93,23 @@ run_test_iterative() {
done
}
+# exxx asl, asr, lsl, lsr, roxl, roxr, rol, ror
+#
+run_test_simple "asrb Dn, Dn" "\xe2\x22"
+run_test_simple "asrb #1, Dn" "\xe2\x02"
+run_test_simple "asrb #8, Dn" "\xe0\x02"
+run_test_simple "aslb #7, Dn" "\xef\x02"
+run_test_simple "asrw Dn, Dn" "\xe2\x62"
+run_test_simple "asrl Dn, Dn" "\xe2\xa2"
+run_test_simple "aslw #6, Dn" "\xed\x43"
+run_test_simple "asll #5, Dn" "\xeb\x83"
+run_test_simple "asrw (An)" "\xe0\xd0"
+run_test_simple "lsrw (An)+" "\xe2\xd8"
+run_test_simple "roxrw -(An)" "\xe4\xe0"
+run_test_simple "rorw (d16,An)" "\xe6\xef\x01\x00"
+# Found on random tests
+run_test_simple "lsrb D1,D4" "\xe2\x2c"
+
# 9xxx subx
#
run_test_simple "subxb Dn, Dn" "\x91\x00"