From: Aleksandar Andrejevic Date: Thu, 27 Feb 2014 03:57:20 +0000 (+0000) Subject: [FAST486] X-Git-Tag: backups/0.3.17@66124~1365^2~56 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=2d9fbc6954d3916e91e47a7937f7ebaf5671dedf;hp=935289b5bc54faefb5b87c843f8e6c82adc98b04 [FAST486] Fix the previous commit. FPU_CHECK should be called after the fetch. svn path=/branches/ntvdm/; revision=62345 --- diff --git a/lib/fast486/fpu.c b/lib/fast486/fpu.c index a4a35116066..a39131ab474 100644 --- a/lib/fast486/fpu.c +++ b/lib/fast486/fpu.c @@ -37,8 +37,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -46,6 +44,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -61,8 +61,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -70,6 +68,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -85,8 +85,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -94,6 +92,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -109,8 +109,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -118,6 +116,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -133,8 +133,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -142,6 +140,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -157,8 +157,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -166,6 +164,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -181,8 +181,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -190,6 +188,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED; @@ -205,8 +205,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF) { UCHAR Function; - FPU_CHECK(); - /* Fetch the function number */ if (!Fast486FetchByte(State, &Function)) { @@ -214,6 +212,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF) return FALSE; } + FPU_CHECK(); + #ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED UNIMPLEMENTED;