From 14a31007fc5a87c24f3911b9da0061fb0afa6d41 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Thu, 14 Nov 2013 03:03:23 +0000 Subject: [PATCH] [FAST486] Fix previous fix. svn path=/branches/ntvdm/; revision=60989 --- lib/fast486/opcodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fast486/opcodes.c b/lib/fast486/opcodes.c index a3e16644001..67432a88e8b 100644 --- a/lib/fast486/opcodes.c +++ b/lib/fast486/opcodes.c @@ -5890,12 +5890,12 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeLods) if (OperandSize) { State->GeneralRegs[FAST486_REG_ECX].Long = 0; - State->GeneralRegs[FAST486_REG_ESI].Long += Count - 1; + 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; + State->GeneralRegs[FAST486_REG_ESI].LowWord += (Count - 1) * DataSize; } }