[FAST486]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Sat, 11 Oct 2014 14:34:31 +0000 (14:34 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Sat, 11 Oct 2014 14:34:31 +0000 (14:34 +0000)
Fix the 6-bit sub-opcode numbers for opcode 0xDB.

svn path=/trunk/; revision=64669

reactos/lib/fast486/fpu.c

index 26924a3..96fd0a1 100644 (file)
@@ -514,7 +514,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
         switch ((ModRegRm.SecondRegister << 3) | ModRegRm.Register)
         {
             /* FCLEX */
-            case 0x22:
+            case 0x42:
             {
                 /* Clear exception data */
                 State->FpuStatus.Ie =
@@ -531,7 +531,7 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
             }
 
             /* FINIT */
-            case 0x23:
+            case 0x43:
             {
                 /* Restore the state */
                 State->FpuControl.Value = FAST486_FPU_DEFAULT_CONTROL;
@@ -542,9 +542,9 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
             }
 
             /* FENI */
-            case 0x20:
+            case 0x40:
             /* FDISI */
-            case 0x21:
+            case 0x41:
             {
                 /* These do nothing */
                 break;