mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +00:00
[FAST486]
The CS cached descriptor has the default operand size, even for stack operations. svn path=/branches/ntvdm/; revision=60996
This commit is contained in:
parent
bbc9efd2d9
commit
f5d0d3e784
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ BOOLEAN
|
||||||
Fast486StackPush(PFAST486_STATE State,
|
Fast486StackPush(PFAST486_STATE State,
|
||||||
ULONG Value)
|
ULONG Value)
|
||||||
{
|
{
|
||||||
BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size;
|
BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
|
||||||
|
|
||||||
/* The OPSIZE prefix toggles the size */
|
/* The OPSIZE prefix toggles the size */
|
||||||
if (State->PrefixFlags & FAST486_PREFIX_OPSIZE) Size = !Size;
|
if (State->PrefixFlags & FAST486_PREFIX_OPSIZE) Size = !Size;
|
||||||
|
@ -315,7 +315,7 @@ Fast486StackPop(PFAST486_STATE State,
|
||||||
{
|
{
|
||||||
ULONG LongValue;
|
ULONG LongValue;
|
||||||
USHORT ShortValue;
|
USHORT ShortValue;
|
||||||
BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size;
|
BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
|
||||||
|
|
||||||
/* The OPSIZE prefix toggles the size */
|
/* The OPSIZE prefix toggles the size */
|
||||||
TOGGLE_OPSIZE(Size);
|
TOGGLE_OPSIZE(Size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue