mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +00:00
[FAST486]
Update the register values in REP LODS. svn path=/branches/ntvdm/; revision=60988
This commit is contained in:
parent
cdf876ead9
commit
9c66549845
1 changed files with 12 additions and 0 deletions
|
@ -5885,6 +5885,18 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeLods)
|
||||||
if (AddressSize) State->GeneralRegs[FAST486_REG_ESI].Long -= (Count - 1) * DataSize;
|
if (AddressSize) State->GeneralRegs[FAST486_REG_ESI].Long -= (Count - 1) * DataSize;
|
||||||
else State->GeneralRegs[FAST486_REG_ESI].LowWord -= (Count - 1) * DataSize;
|
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;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
State->GeneralRegs[FAST486_REG_ECX].LowWord = 0;
|
||||||
|
State->GeneralRegs[FAST486_REG_ESI].LowWord += Count - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read from the source operand */
|
/* Read from the source operand */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue