summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-08 23:20:41 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-08 23:20:41 -0700
commit827484f495246e677d658454ae6ee016b95f7d77 (patch)
treecf7187f3912eefb112f8083e4bf4f83429cd9ae8
parentc0578249e0cc08564905b9d6befb762c01cae4da (diff)
Set PV flag based on parity, not overflow for XOR
-rw-r--r--z80_to_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index e89fbae..f568c5a 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -736,7 +736,7 @@ uint8_t * translate_z80inst(z80inst * inst, uint8_t * dst, z80_context * context
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));
}