From c0578249e0cc08564905b9d6befb762c01cae4da Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 8 May 2013 23:17:54 -0700 Subject: BIT was setting the zero flag to the opposite of what it should have. This is now fixed. --- z80_to_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'z80_to_x86.c') 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; -- cgit v1.2.3