mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:23:13 +00:00
[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:
parent
8998a96d56
commit
b456a8b355
4 changed files with 175 additions and 159 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue