From 79182b385db0845dba808b2aabe670dfd86226ea Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sun, 28 Jul 2002 16:27:17 +0000 Subject: [PATCH] Changed things a bit. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@85 --- include/fpu.h | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/include/fpu.h b/include/fpu.h index 9f2d819f..b0244bf6 100644 --- a/include/fpu.h +++ b/include/fpu.h @@ -19,33 +19,6 @@ #ifndef __FPU_H #define __FPU_H -#include -#include -#include - -enum { FPUREG_VALID=0, FPUREG_ZERO, FPUREG_PNAN, FPUREG_NNAN, FPUREG_EMPTY }; - -enum { - t_FLD=0, t_FLDST, t_FDIV, - t_FDIVP, t_FCHS, t_FCOMP, - - t_FUNKNOWN, - t_FNOTDONE, -}; - -bool FPU_get_C3(); -bool FPU_get_C2(); -bool FPU_get_C1(); -bool FPU_get_C0(); -bool FPU_get_IR(); -bool FPU_get_SF(); -bool FPU_get_PF(); -bool FPU_get_UF(); -bool FPU_get_OF(); -bool FPU_get_ZF(); -bool FPU_get_DF(); -bool FPU_get_IN(); - void FPU_ESC0_Normal(Bitu rm); void FPU_ESC0_EA(Bitu func,PhysPt ea); void FPU_ESC1_Normal(Bitu rm); @@ -63,5 +36,13 @@ 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) { \ + Bit8u rm=Fetchb(); \ + if (rm>=0xc0) { \ + FPU_ESC0_Normal(rm); \ + } else { \ + GetEAa;FPU_ESC0_EA(rm,eaa); \ + } \ +} -#endif \ No newline at end of file +#endif