From e8db23a8b94edad65dfede4ae2077c6788e53de0 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 29 Apr 2023 12:40:11 +0300 Subject: Fix some edge case for dbcc found on random tests --- test.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test.bash') diff --git a/test.bash b/test.bash index 9724d7f..a065465 100644 --- a/test.bash +++ b/test.bash @@ -32,7 +32,7 @@ run_test_simple() { echo -ne "Test \"${test_name}\"... " echo -ne "${data}" >${file_orig_bin} ${DISASM} -t ${TRACE_FILE} -o ${file_asm} ${file_orig_bin} - ${AS} -o ${file_as_o} ${file_asm} + ${AS} -m68000 -o ${file_as_o} ${file_asm} ${LD} -o ${file_as_elf} ${file_as_o} ${OBJCOPY} ${file_as_elf} -O binary ${file_as_bin} if ! cmp ${file_orig_bin} ${file_as_bin} >/dev/null 2>&1; then @@ -157,6 +157,11 @@ run_test_iterative "seq Xn" "\x57" 0xc0 8 1 run_test_simple "dbt negative displacement" "\x50\xcf\xff\xfc" run_test_simple "dbt positive displacement" "\x50\xcf\x01\x08" +# 50c9 7ffe +# +# From random tests +run_test_simple "dbt %d1,.+32768" "\x50\xc9\x7f\xfe" + # 60xx # run_test_simple "bras negative displacement" "\x60\xfc" -- cgit v1.2.3