summaryrefslogtreecommitdiff
path: root/z80_to_x86.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-08 23:17:54 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-08 23:17:54 -0700
commitc0578249e0cc08564905b9d6befb762c01cae4da (patch)
tree1c2a8f1eaa9b7da3e23fdeb04e74ac62a624d681 /z80_to_x86.c
parent36c79fe27125983e28fa2f9cb4a839064302fc36 (diff)
BIT was setting the zero flag to the opposite of what it should have. This is now fixed.
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r--z80_to_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index 5e82bf4..e89fbae 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -1159,7 +1159,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
dst = zcycles(dst, 1);
}
dst = bt_ir(dst, inst->immed, src_op.base, SZ_B);
- dst = setcc_rdisp8(dst, CC_C, CONTEXT, zf_off(ZF_Z));
+ dst = setcc_rdisp8(dst, CC_NC, CONTEXT, zf_off(ZF_Z));
break;
case Z80_SET:
cycles = (inst->addr_mode == Z80_IX_DISPLACE || inst->addr_mode == Z80_IY_DISPLACE) ? 8 : 16;