diff --git a/include/fpu.h b/include/fpu.h index b0244bf6..d181a2ac 100644 --- a/include/fpu.h +++ b/include/fpu.h @@ -19,6 +19,8 @@ #ifndef __FPU_H #define __FPU_H +#include "mem.h" + void FPU_ESC0_Normal(Bitu rm); void FPU_ESC0_EA(Bitu func,PhysPt ea); void FPU_ESC1_Normal(Bitu rm); @@ -36,12 +38,12 @@ void FPU_ESC6_EA(Bitu func,PhysPt ea); void FPU_ESC7_Normal(Bitu rm); void FPU_ESC7_EA(Bitu func,PhysPt ea); -#define FPU_ESC(a) { \ +#define FPU_ESC(code) { \ Bit8u rm=Fetchb(); \ if (rm>=0xc0) { \ - FPU_ESC0_Normal(rm); \ + FPU_ESC ## code ## _Normal(rm); \ } else { \ - GetEAa;FPU_ESC0_EA(rm,eaa); \ + GetEAa;FPU_ESC ## code ## _EA(rm,eaa); \ } \ }