mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 15:19:37 +00:00
[SOFT386]
Fix the carry flag in the SAR instruction. svn path=/branches/ntvdm/; revision=60589
This commit is contained in:
parent
10523b910e
commit
e9829f1830
|
@ -273,7 +273,7 @@ Soft386RotateOperation(PSOFT386_STATE State,
|
||||||
if (Value & HighestBit) Result |= ((1 << Count) - 1) << (Bits - Count);
|
if (Value & HighestBit) Result |= ((1 << Count) - 1) << (Bits - Count);
|
||||||
|
|
||||||
/* Update CF and OF */
|
/* Update CF and OF */
|
||||||
State->Flags.Cf = Value & 1;
|
State->Flags.Cf = (Value & (1 << (Count - 1))) ? TRUE : FALSE;
|
||||||
if (Count == 1) State->Flags.Of = FALSE;
|
if (Count == 1) State->Flags.Of = FALSE;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue