From 7ec93e81ff612f0990054833c119d989909583b2 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sun, 10 Nov 2013 22:49:19 +0000 Subject: [PATCH] [FAST486] Increment SP, not ESP for 16-bit stacks. svn path=/branches/ntvdm/; revision=60925 --- lib/fast486/common.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fast486/common.inl b/lib/fast486/common.inl index 4d8fdb27c4f..a45c244cd87 100644 --- a/lib/fast486/common.inl +++ b/lib/fast486/common.inl @@ -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;