[FAST486]

Revert the previous fix and fix it again, but properly.


svn path=/trunk/; revision=64671
This commit is contained in:
Aleksandar Andrejevic 2014-10-11 14:40:53 +00:00
parent 8f8255e36b
commit beb08f639d

View file

@ -511,10 +511,10 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
else
{
/* Only a few of these instructions have any meaning on a 487 */
switch ((ModRegRm.SecondRegister << 3) | ModRegRm.Register)
switch ((ModRegRm.Register << 3) | ModRegRm.SecondRegister)
{
/* FCLEX */
case 0x42:
case 0x22:
{
/* Clear exception data */
State->FpuStatus.Ie =
@ -531,7 +531,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
}
/* FINIT */
case 0x43:
case 0x23:
{
/* Restore the state */
State->FpuControl.Value = FAST486_FPU_DEFAULT_CONTROL;
@ -542,9 +542,9 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
}
/* FENI */
case 0x40:
case 0x20:
/* FDISI */
case 0x41:
case 0x21:
{
/* These do nothing */
break;