From 14f0ad85561873ea89fcc56cd233248396f1409f Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 28 Jul 2002 21:52:31 +0000 Subject: [PATCH] Fixed FPU_ESC #define Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@88 --- include/fpu.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); \ } \ }