diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-04-20 14:36:41 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-04-20 14:36:41 -0700 |
commit | e99cf48eeef0a00bc985bd33660a6e531e642b2e (patch) | |
tree | 4bd945d4a27e996e0a0cb5b5b9df07ff1bddf32b /m68k_to_x86.c | |
parent | 1d7cd4524ed0704b43d79d8827dceef5f1987701 (diff) |
Fix overflow flag behavior for lsl/lsr/asr
Diffstat (limited to 'm68k_to_x86.c')
-rw-r--r-- | m68k_to_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m68k_to_x86.c b/m68k_to_x86.c index e149526..41447ea 100644 --- a/m68k_to_x86.c +++ b/m68k_to_x86.c @@ -2757,7 +2757,7 @@ uint8_t * translate_shift(uint8_t * dst, m68kinst * inst, x86_ea *src_op, x86_ea if (z_off) { *z_off = dst - (z_off + 1); } - if (inst->op != M68K_ASL && inst->src.addr_mode != MODE_UNUSED && !(src_op->mode == MODE_IMMED && src_op->disp == 1)) { + if (inst->op != M68K_ASL) { dst = mov_ir(dst, 0, FLAG_V, SZ_B); } if (inst->src.addr_mode == MODE_UNUSED) { |