mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +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 */
|
||||
ASSERT(Opcode == 0x68);
|
||||
|
||||
if (State->PrefixFlags == SOFT386_PREFIX_OPSIZE)
|
||||
{
|
||||
/* The OPSIZE prefix toggles the size */
|
||||
Size = !Size;
|
||||
}
|
||||
else
|
||||
if (State->PrefixFlags & SOFT386_PREFIX_LOCK)
|
||||
{
|
||||
/* Invalid prefix */
|
||||
Soft386Exception(State, SOFT386_EXCEPTION_UD);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (State->PrefixFlags & SOFT386_PREFIX_OPSIZE)
|
||||
{
|
||||
/* The OPSIZE prefix toggles the size */
|
||||
Size = !Size;
|
||||
}
|
||||
|
||||
if (Size)
|
||||
{
|
||||
ULONG Data;
|
||||
|
|
Loading…
Reference in a new issue