1
0
Fork 0

fixed both fptan and fpatan. Xcom now works flawsless

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1050
This commit is contained in:
Peter Veenstra 2003-06-10 21:09:12 +00:00
parent a1f892935e
commit 6daab43bf7

View file

@ -104,7 +104,8 @@ static void FPU_FSQRT(void){
}
static void FPU_FPATAN(void){
Bitu top = FPU_GET_TOP();
fpu.regs[top].d = atan(fpu.regs[top].d);
fpu.regs[(top+1)&7].d = atan(fpu.regs[(top+1)&7].d/fpu.regs[top].d);
FPU_FPOP();
FPU_SET_C2(0);
//flags and such :)
return;
@ -112,6 +113,7 @@ static void FPU_FPATAN(void){
static void FPU_FPTAN(void){
Bitu top = FPU_GET_TOP();
fpu.regs[top].d = tan(fpu.regs[top].d);
FPU_PUSH(1.0);
FPU_SET_C2(0);
//flags and such :)
return;