summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-31 20:46:56 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-31 20:46:56 -0700
commit3e12841754549dccbeb1270b3cfc444bfe773c7b (patch)
treee8eac637fc50bfdd1dedf55a5bf9ae41bde231c8
parent9a7ec29919cdcc7ca97c991053fe74de8f6081f3 (diff)
Fix P condition in Z80 core
-rw-r--r--z80_to_x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index 56b10ec..bd9892f 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -1347,6 +1347,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
dst = cmp_irdisp8(dst, 0, CONTEXT, zf_off(ZF_PV), SZ_B);
break;
case Z80_CC_P:
+ cond = CC_NZ;
case Z80_CC_M:
dst = cmp_irdisp8(dst, 0, CONTEXT, zf_off(ZF_S), SZ_B);
break;
@@ -1489,6 +1490,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
dst = cmp_irdisp8(dst, 0, CONTEXT, zf_off(ZF_PV), SZ_B);
break;
case Z80_CC_P:
+ cond = CC_NZ;
case Z80_CC_M:
dst = cmp_irdisp8(dst, 0, CONTEXT, zf_off(ZF_S), SZ_B);
break;
@@ -1544,6 +1546,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
dst = cmp_irdisp8(dst, 0, CONTEXT, zf_off(ZF_PV), SZ_B);
break;
case Z80_CC_P:
+ cond = CC_NZ;
case Z80_CC_M:
dst = cmp_irdisp8(dst, 0, CONTEXT, zf_off(ZF_S), SZ_B);
break;