X86: Fix how the parity flag is computed.
It's only for the lowest order byte, and I had the polarity wrong.
This commit is contained in:
parent
f5c21eaa1a
commit
df2c862a07
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ namespace X86ISA
|
||||||
if(subtract)
|
if(subtract)
|
||||||
flags ^= (flagMask & (ECFBit | CFBit));
|
flags ^= (flagMask & (ECFBit | CFBit));
|
||||||
}
|
}
|
||||||
if(flagMask & PFBit && findParity(dataSize*8, _dest))
|
if(flagMask & PFBit && !findParity(8, _dest))
|
||||||
flags |= PFBit;
|
flags |= PFBit;
|
||||||
if(flagMask & AFBit)
|
if(flagMask & AFBit)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue