diff options
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r-- | z80_to_x86.c | 3 |
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; |