Author: aandrejevic Date: Thu Feb 27 03:54:43 2014 New Revision: 62344
URL: http://svn.reactos.org/svn/reactos?rev=62344&view=rev Log: [FAST486] All of the FPU opcodes fetch another byte which is the function number. This is done by the CPU and it occurs even if there is no FPU attached.
Modified: branches/ntvdm/lib/fast486/fpu.c
Modified: branches/ntvdm/lib/fast486/fpu.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/fpu.c?rev=6234... ============================================================================== --- branches/ntvdm/lib/fast486/fpu.c [iso-8859-1] (original) +++ branches/ntvdm/lib/fast486/fpu.c [iso-8859-1] Thu Feb 27 03:54:43 2014 @@ -35,7 +35,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD8) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -50,7 +59,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeD9) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -65,7 +83,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDA) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -80,7 +107,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDB) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -95,7 +131,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDC) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -110,7 +155,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDD) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -125,7 +179,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDE) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED @@ -140,7 +203,16 @@
FAST486_OPCODE_HANDLER(Fast486FpuOpcodeDF) { - FPU_CHECK(); + UCHAR Function; + + FPU_CHECK(); + + /* Fetch the function number */ + if (!Fast486FetchByte(State, &Function)) + { + /* Exception occurred */ + return FALSE; + }
#ifndef FAST486_NO_FPU // TODO: NOT IMPLEMENTED