[SOFT386]

Fix prefix handling.


svn path=/branches/ntvdm/; revision=60464
This commit is contained in:
Aleksandar Andrejevic 2013-09-30 00:27:56 +00:00
parent b9a1962978
commit 79355ae971

View file

@ -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;