[FAST486]

Fix the previous commit. FPU_CHECK should be called after the fetch.


svn path=/branches/ntvdm/; revision=62345
This commit is contained in:
Aleksandar Andrejevic 2014-02-27 03:57:20 +00:00
parent 935289b5bc
commit 2d9fbc6954

View file

@ -37,8 +37,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -46,6 +44,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -61,8 +61,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -70,6 +68,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -85,8 +85,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -94,6 +92,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -109,8 +109,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -118,6 +116,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -133,8 +133,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -142,6 +140,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -157,8 +157,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -166,6 +164,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -181,8 +181,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -190,6 +188,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;
@ -205,8 +205,6 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF)
{ {
UCHAR Function; UCHAR Function;
FPU_CHECK();
/* Fetch the function number */ /* Fetch the function number */
if (!Fast486FetchByte(State, &Function)) if (!Fast486FetchByte(State, &Function))
{ {
@ -214,6 +212,8 @@ FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF)
return FALSE; return FALSE;
} }
FPU_CHECK();
#ifndef FAST486_NO_FPU #ifndef FAST486_NO_FPU
// TODO: NOT IMPLEMENTED // TODO: NOT IMPLEMENTED
UNIMPLEMENTED; UNIMPLEMENTED;