[FAST486]

Make the parameters to Fast486ReadModrm*Operands optional, so that
unnecessary extra reads aren't performed. This also eliminates the
need for dummy variables.


svn path=/branches/ntvdm/; revision=61055
This commit is contained in:
Aleksandar Andrejevic 2013-11-20 08:01:10 +00:00
parent 8998a96d56
commit b456a8b355
4 changed files with 175 additions and 159 deletions

View file

@ -3951,9 +3951,9 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeMovLoadSeg)
if (OperandSize)
{
ULONG Dummy, Selector;
ULONG Selector;
if (!Fast486ReadModrmDwordOperands(State, &ModRegRm, &Dummy, &Selector))
if (!Fast486ReadModrmDwordOperands(State, &ModRegRm, NULL, &Selector))
{
/* Exception occurred */
return FALSE;
@ -3963,9 +3963,9 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeMovLoadSeg)
}
else
{
USHORT Dummy, Selector;
USHORT Selector;
if (!Fast486ReadModrmWordOperands(State, &ModRegRm, &Dummy, &Selector))
if (!Fast486ReadModrmWordOperands(State, &ModRegRm, NULL, &Selector))
{
/* Exception occurred */
return FALSE;