diff --git a/src/fpu/fpu_instructions.h b/src/fpu/fpu_instructions.h index 70df617a..bdd9bcf9 100644 --- a/src/fpu/fpu_instructions.h +++ b/src/fpu/fpu_instructions.h @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: fpu_instructions.h,v 1.12 2003-09-24 19:46:36 qbix79 Exp $ */ +/* $Id: fpu_instructions.h,v 1.13 2003-10-07 10:42:01 qbix79 Exp $ */ static void FPU_FINIT(void) { @@ -157,16 +157,16 @@ static void FPU_FST(Bitu st, Bitu other){ static void FPU_FCOM(Bitu st, Bitu other){ if((fpu.tags[st] != TAG_Valid) || (fpu.tags[other] != TAG_Valid)){ - FPU_SET_C3(1);FPU_SET_C1(1);FPU_SET_C0(1);return; + FPU_SET_C3(1);FPU_SET_C2(1);FPU_SET_C0(1);return; } if(fpu.regs[st].d == fpu.regs[other].d){ - FPU_SET_C3(1);FPU_SET_C1(0);FPU_SET_C0(0);return; + FPU_SET_C3(1);FPU_SET_C2(0);FPU_SET_C0(0);return; } if(fpu.regs[st].d < fpu.regs[other].d){ - FPU_SET_C3(0);FPU_SET_C1(0);FPU_SET_C0(1);return; + FPU_SET_C3(0);FPU_SET_C2(0);FPU_SET_C0(1);return; } // st > other - FPU_SET_C3(0);FPU_SET_C1(0);FPU_SET_C0(0);return; + FPU_SET_C3(0);FPU_SET_C2(0);FPU_SET_C0(0);return; } static void FPU_FUCOM(Bitu st, Bitu other){ @@ -203,10 +203,10 @@ static void FPU_FPREM(void){ Bit64s ressaved = static_cast(res); res=valtop - res*valdiv; fpu.regs[TOP].d = res; - FPU_SET_C3(static_cast(ressaved&4)); - FPU_SET_C2(static_cast(ressaved&2)); + FPU_SET_C0(static_cast(ressaved&4)); + FPU_SET_C3(static_cast(ressaved&2)); FPU_SET_C1(static_cast(ressaved&1)); - FPU_SET_C0(0); + FPU_SET_C2(0); } static void FPU_FXAM(void){