mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:25:55 +00:00
[SOFT386]
Fix the CALL instruction. The offset must be fetched before EIP is pushed. svn path=/branches/ntvdm/; revision=60259
This commit is contained in:
parent
56948f4801
commit
9d7137b757
1 changed files with 14 additions and 7 deletions
|
@ -4506,13 +4506,6 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeCall)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Push the current value of the instruction pointer */
|
|
||||||
if (!Soft386StackPush(State, State->InstPtr.Long))
|
|
||||||
{
|
|
||||||
/* Exception occurred */
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Size)
|
if (Size)
|
||||||
{
|
{
|
||||||
LONG Offset = 0;
|
LONG Offset = 0;
|
||||||
|
@ -4524,6 +4517,13 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeCall)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Push the current value of the instruction pointer */
|
||||||
|
if (!Soft386StackPush(State, State->InstPtr.Long))
|
||||||
|
{
|
||||||
|
/* Exception occurred */
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Move the instruction pointer */
|
/* Move the instruction pointer */
|
||||||
State->InstPtr.Long += Offset;
|
State->InstPtr.Long += Offset;
|
||||||
}
|
}
|
||||||
|
@ -4538,6 +4538,13 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodeCall)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Push the current value of the instruction pointer */
|
||||||
|
if (!Soft386StackPush(State, State->InstPtr.Long))
|
||||||
|
{
|
||||||
|
/* Exception occurred */
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Move the instruction pointer */
|
/* Move the instruction pointer */
|
||||||
State->InstPtr.LowWord += Offset;
|
State->InstPtr.LowWord += Offset;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue