mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[SOFT386]
Fix prefix handling. svn path=/branches/ntvdm/; revision=60464
This commit is contained in:
parent
b9a1962978
commit
79355ae971
1 changed files with 7 additions and 6 deletions
|
@ -3757,18 +3757,19 @@ SOFT386_OPCODE_HANDLER(Soft386OpcodePushImm)
|
||||||
/* Make sure this is the right instruction */
|
/* Make sure this is the right instruction */
|
||||||
ASSERT(Opcode == 0x68);
|
ASSERT(Opcode == 0x68);
|
||||||
|
|
||||||
if (State->PrefixFlags == SOFT386_PREFIX_OPSIZE)
|
if (State->PrefixFlags & SOFT386_PREFIX_LOCK)
|
||||||
{
|
|
||||||
/* The OPSIZE prefix toggles the size */
|
|
||||||
Size = !Size;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
/* Invalid prefix */
|
/* Invalid prefix */
|
||||||
Soft386Exception(State, SOFT386_EXCEPTION_UD);
|
Soft386Exception(State, SOFT386_EXCEPTION_UD);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (State->PrefixFlags & SOFT386_PREFIX_OPSIZE)
|
||||||
|
{
|
||||||
|
/* The OPSIZE prefix toggles the size */
|
||||||
|
Size = !Size;
|
||||||
|
}
|
||||||
|
|
||||||
if (Size)
|
if (Size)
|
||||||
{
|
{
|
||||||
ULONG Data;
|
ULONG Data;
|
||||||
|
|
Loading…
Reference in a new issue