Author: aandrejevic
Date: Fri Nov 15 04:16:25 2013
New Revision: 60996

URL: http://svn.reactos.org/svn/reactos?rev=60996&view=rev
Log:
[FAST486]
The CS cached descriptor has the default operand size, even for stack
operations.


Modified:
    branches/ntvdm/lib/fast486/common.inl

Modified: branches/ntvdm/lib/fast486/common.inl
URL: 
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/common.inl?rev=60996&r1=60995&r2=60996&view=diff
==============================================================================
--- branches/ntvdm/lib/fast486/common.inl       [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/common.inl       [iso-8859-1] Fri Nov 15 
04:16:25 2013
@@ -257,7 +257,7 @@
 Fast486StackPush(PFAST486_STATE State,
                  ULONG Value)
 {
-    BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size;
+    BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
 
     /* The OPSIZE prefix toggles the size */
     if (State->PrefixFlags & FAST486_PREFIX_OPSIZE) Size = !Size;
@@ -315,7 +315,7 @@
 {
     ULONG LongValue;
     USHORT ShortValue;
-    BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size;
+    BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
 
     /* The OPSIZE prefix toggles the size */
     TOGGLE_OPSIZE(Size);


Reply via email to