[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 10 Nov 2013 22:49:19 +0000 (22:49 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sun, 10 Nov 2013 22:49:19 +0000 (22:49 +0000)
Increment SP, not ESP for 16-bit stacks.

svn path=/branches/ntvdm/; revision=60925

lib/fast486/common.inl

index 4d8fdb2..a45c244 100644 (file)
@@ -365,7 +365,7 @@ Fast486StackPop(PFAST486_STATE State,
         }
 
         /* Increment SP by 2 */
-        State->GeneralRegs[FAST486_REG_ESP].Long += 2;
+        State->GeneralRegs[FAST486_REG_ESP].LowWord += 2;
 
         /* Store the value in the result */
         *Value = ShortValue;