1
0
Fork 0

Fixes of c2woody for the first c2woody fixes.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1300
This commit is contained in:
Peter Veenstra 2003-10-07 10:42:01 +00:00
parent cc967c135b
commit ee7b9ac813

View file

@ -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<Bit64s>(res);
res=valtop - res*valdiv;
fpu.regs[TOP].d = res;
FPU_SET_C3(static_cast<Bitu>(ressaved&4));
FPU_SET_C2(static_cast<Bitu>(ressaved&2));
FPU_SET_C0(static_cast<Bitu>(ressaved&4));
FPU_SET_C3(static_cast<Bitu>(ressaved&2));
FPU_SET_C1(static_cast<Bitu>(ressaved&1));
FPU_SET_C0(0);
FPU_SET_C2(0);
}
static void FPU_FXAM(void){