[FAST486]

The RCL, RCR, ROL and ROR instructions do not update SF, ZF or PF.


svn path=/branches/ntvdm/; revision=60841
This commit is contained in:
Aleksandar Andrejevic 2013-11-03 01:05:40 +00:00
parent fde9609542
commit 6e6e0bac08

View file

@ -278,10 +278,13 @@ Fast486RotateOperation(PFAST486_STATE State,
}
}
/* Update ZF, SF and PF */
State->Flags.Zf = (Result == 0) ? TRUE : FALSE;
State->Flags.Sf = (Result & HighestBit) ? TRUE : FALSE;
State->Flags.Pf = Fast486CalculateParity(Result);
if (Operation >= 4)
{
/* Update ZF, SF and PF */
State->Flags.Zf = (Result == 0) ? TRUE : FALSE;
State->Flags.Sf = (Result & HighestBit) ? TRUE : FALSE;
State->Flags.Pf = Fast486CalculateParity(Result);
}
/* Return the result */
return Result;