Author: aandrejevic
Date: Thu Nov 14 03:11:33 2013
New Revision: 60990

URL: http://svn.reactos.org/svn/reactos?rev=60990&view=rev
Log:
[FAST486]
Fix the previous fix. ESI was already updated earlier in the function.


Modified:
    branches/ntvdm/lib/fast486/opcodes.c

Modified: branches/ntvdm/lib/fast486/opcodes.c
URL: 
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/opcodes.c?rev=60990&r1=60989&r2=60990&view=diff
==============================================================================
--- branches/ntvdm/lib/fast486/opcodes.c        [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/opcodes.c        [iso-8859-1] Thu Nov 14 
03:11:33 2013
@@ -5886,17 +5886,9 @@
             else State->GeneralRegs[FAST486_REG_ESI].LowWord -= (Count - 1) * 
DataSize;
         }
 
-        /* Update registers */
-        if (OperandSize)
-        {
-            State->GeneralRegs[FAST486_REG_ECX].Long = 0;
-            State->GeneralRegs[FAST486_REG_ESI].Long += (Count - 1) * DataSize;
-        }
-        else
-        {
-            State->GeneralRegs[FAST486_REG_ECX].LowWord = 0;
-            State->GeneralRegs[FAST486_REG_ESI].LowWord += (Count - 1) * 
DataSize;
-        }
+        /* Clear ECX */
+        if (OperandSize) State->GeneralRegs[FAST486_REG_ECX].Long = 0;
+        else State->GeneralRegs[FAST486_REG_ECX].LowWord = 0;
     }
 
     /* Read from the source operand */


Reply via email to