From 82001bc86e6c5ff19f1770a1f784dc872185bef8 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 12 Oct 2004 20:14:38 +0000 Subject: [PATCH] forgot one register Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2023 --- src/fpu/fpu_instructions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fpu/fpu_instructions.h b/src/fpu/fpu_instructions.h index a810cebd..03b9bafc 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.22 2004-10-12 16:19:45 qbix79 Exp $ */ +/* $Id: fpu_instructions.h,v 1.23 2004-10-12 20:14:38 qbix79 Exp $ */ static void FPU_FINIT(void) { @@ -401,5 +401,6 @@ static void FPU_FXTRACT(void) { Bit64s exp80 = test.ll&LONGTYPE(0x7ff0000000000000); Bit64s exp80final = (exp80>>52) - BIAS64; Real64 mant = test.d / (pow(2.0,static_cast(exp80final))); + fpu.regs[TOP].d=exp80final; FPU_PUSH(mant); }