diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-05-08 23:17:54 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-05-08 23:17:54 -0700 |
commit | c0578249e0cc08564905b9d6befb762c01cae4da (patch) | |
tree | 1c2a8f1eaa9b7da3e23fdeb04e74ac62a624d681 | |
parent | 36c79fe27125983e28fa2f9cb4a839064302fc36 (diff) |
BIT was setting the zero flag to the opposite of what it should have. This is now fixed.
-rw-r--r-- | z80_to_x86.c | 2 |
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; |