From: Aleksandar Andrejevic Date: Sat, 11 Oct 2014 14:40:53 +0000 (+0000) Subject: [FAST486] X-Git-Tag: backups/0.3.17@66124~85 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=beb08f639def87a824fbf95390193971ad12e5e0 [FAST486] Revert the previous fix and fix it again, but properly. svn path=/trunk/; revision=64671 --- diff --git a/reactos/lib/fast486/fpu.c b/reactos/lib/fast486/fpu.c index 96fd0a1e73d..e0c42ead1fa 100644 --- a/reactos/lib/fast486/fpu.c +++ b/reactos/lib/fast486/fpu.c @@ -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;