Author: hbelusca
Date: Sun Feb 23 21:02:02 2014
New Revision: 62313
URL:
http://svn.reactos.org/svn/reactos?rev=62313&view=rev
Log:
[FAST486]
- Fix return values of Fast486OpcodeSahf and Fast486OpcodeLahf handlers.
- [TheFlash], can you please see what we should return after calling
Fast486ExceptionWithErrorCode in Fast486OpcodePopFlags ?
Modified:
branches/ntvdm/lib/fast486/opcodes.c
Modified: branches/ntvdm/lib/fast486/opcodes.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/opcodes.c?rev…
==============================================================================
--- branches/ntvdm/lib/fast486/opcodes.c [iso-8859-1] (original)
+++ branches/ntvdm/lib/fast486/opcodes.c [iso-8859-1] Sun Feb 23 21:02:02 2014
@@ -4268,6 +4268,7 @@
return FALSE;
}
+ /* Check for VM86 mode when IOPL is not 3 */
if (State->Flags.Vm && (State->Flags.Iopl != 3))
{
/* Call the VM86 monitor */
@@ -4305,7 +4306,7 @@
State->Flags.AlwaysSet = TRUE;
State->Flags.Reserved0 = State->Flags.Reserved1 = FALSE;
- return FALSE;
+ return TRUE;
}
FAST486_OPCODE_HANDLER(Fast486OpcodeLahf)
@@ -4316,7 +4317,7 @@
/* Set AH to the low-order byte of FLAGS */
State->GeneralRegs[FAST486_REG_EAX].HighByte = LOBYTE(State->Flags.Long);
- return FALSE;
+ return TRUE;
}
FAST486_OPCODE_HANDLER(Fast486OpcodeRet)