changeset 303:8290d3086ff0

BIT was setting the zero flag to the opposite of what it should have. This is now fixed.
author Mike Pavone <pavone@retrodev.com>
date Wed, 08 May 2013 23:17:54 -0700
parents 3b831fe32c15
children 8dcc9d14413c
files z80_to_x86.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/z80_to_x86.c	Wed May 08 23:12:08 2013 -0700
+++ b/z80_to_x86.c	Wed May 08 23:17:54 2013 -0700
@@ -1159,7 +1159,7 @@
 			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;