Mercurial > repos > blastem
changeset 304:8dcc9d14413c
Set PV flag based on parity, not overflow for XOR
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 08 May 2013 23:20:41 -0700 |
parents | 8290d3086ff0 |
children | a57fac5b3d65 |
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:17:54 2013 -0700 +++ b/z80_to_x86.c Wed May 08 23:20:41 2013 -0700 @@ -736,7 +736,7 @@ dst = mov_irdisp8(dst, 0, CONTEXT, zf_off(ZF_N), SZ_B); //TODO: Implement half-carry flag if (z80_size(inst) == SZ_B) { - dst = setcc_rdisp8(dst, CC_O, CONTEXT, zf_off(ZF_PV)); + dst = setcc_rdisp8(dst, CC_P, CONTEXT, zf_off(ZF_PV)); dst = setcc_rdisp8(dst, CC_Z, CONTEXT, zf_off(ZF_Z)); dst = setcc_rdisp8(dst, CC_S, CONTEXT, zf_off(ZF_S)); }