From 5e54387a9c84b882fd6af230b0a0d7074e943044 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Thu, 14 Nov 2013 03:11:33 +0000 Subject: [PATCH] [FAST486] Fix the previous fix. ESI was already updated earlier in the function. svn path=/branches/ntvdm/; revision=60990 --- lib/fast486/opcodes.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/fast486/opcodes.c b/lib/fast486/opcodes.c index 67432a88e8b..0268269476b 100644 --- a/lib/fast486/opcodes.c +++ b/lib/fast486/opcodes.c @@ -5886,17 +5886,9 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeLods) 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 */