diff --git a/Z80/Z80.cs b/Z80/Z80.cs index a315a29..f9e410b 100644 --- a/Z80/Z80.cs +++ b/Z80/Z80.cs @@ -2152,7 +2152,8 @@ namespace Z80 } else { - this.AdjustParity((byte)(this.B & (byte)Mask.Three)); + var parity = (this.Parity() >> 2) ^ (EvenParity((byte)(this.B & (byte)Mask.Three)) ? 1 : 0) ^ 1; + this.SetBit(StatusBits.PF, parity != 0); } }