summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-20 00:56:33 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-20 00:56:33 -0800
commit93805144d74675fcefcc21575ef08ba1404e3ec6 (patch)
tree15d2bbcc3fdbaa12d9897be788a5ccb0662958f6
parent45779ee397097f3249eb1a1a858c0f0ac02d3bba (diff)
Fix BTST
-rw-r--r--m68k_to_x86.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/m68k_to_x86.c b/m68k_to_x86.c
index 3a84079..9773a4a 100644
--- a/m68k_to_x86.c
+++ b/m68k_to_x86.c
@@ -1009,7 +1009,7 @@ uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts)
break;
case M68K_BTST:
dst = cycles(dst, inst->extra.size == OPSIZE_BYTE ? 4 : 6);
- if (src_op.mode == MODE_IMMEDIATE) {
+ if (src_op.mode == MODE_IMMED) {
if (inst->extra.size == OPSIZE_BYTE) {
src_op.disp &= 0x7;
}
@@ -1044,7 +1044,6 @@ uint8_t * translate_m68k(uint8_t * dst, m68kinst * inst, x86_68k_options * opts)
if (src_op.base == SCRATCH2) {
dst = pop_r(dst, SCRATCH2);
}
- dst = m68k_save_result(inst, dst, opts);
break;
case M68K_CHK:
break;