From 66d0d1648b6ad8313c2db408ee395c02073e6721 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 1 Jun 2003 16:18:47 +0000 Subject: [PATCH] tiny little error in fsincos Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1030 --- src/fpu/fpu_instructions.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fpu/fpu_instructions.h b/src/fpu/fpu_instructions.h index 674aaabe..cf45b608 100644 --- a/src/fpu/fpu_instructions.h +++ b/src/fpu/fpu_instructions.h @@ -76,8 +76,10 @@ static void FPU_FSIN(void){ static void FPU_FSINCOS(void){ Bitu top = FPU_GET_TOP(); - fpu.regs[top].d = sin(fpu.regs[top].d); + + double temp = sin(fpu.regs[top].d); FPU_PUSH(cos(fpu.regs[top].d)); + fpu.regs[top].d = temp; //flags and such :) return; }