From 8ea1d138088f73e677d623edd8b8ad2427b4e482 Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 8 May 2023 16:33:37 +0300 Subject: Impl NBCD, SWAP and PEA --- test.bash | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test.bash') diff --git a/test.bash b/test.bash index cfa3aab..a235521 100644 --- a/test.bash +++ b/test.bash @@ -93,6 +93,22 @@ run_test_iterative() { done } +# 48xx nbcd swap pea +# +run_test_simple "swapw Dn" "\x48\x47" +run_test_simple "swapw Dn" "\x48\x42" +run_test_simple "peal (An)" "\x48\x50" +run_test_simple "peal (d16,An)" "\x48\x68\x80\x00" +run_test_simple "peal (d8,An,An)" "\x48\x77\x90\xfe" +run_test_simple "peal (d16,PC)" "\x48\x7a\x7f\xff" +run_test_simple "peal (d8,PC,Dn)" "\x48\x7b\x68\xfe" +run_test_simple "nbcdb Dn" "\x48\x03" +run_test_simple "nbcdb (An)" "\x48\x14" +run_test_simple "nbcdb (An)+" "\x48\x1c" +run_test_simple "nbcdb -(An)" "\x48\x25" +run_test_simple "nbcdb (d16,An)" "\x48\x28\x80\x00" +run_test_simple "nbcdb (d8,An,An)" "\x48\x37\x90\xfe" + # 48xx ext # run_test_simple "extw %d7" "\x48\x87" -- cgit v1.2.3