From 8f1f7e01c0a6dfc6dc1d84bc7787ae17d584b3a7 Mon Sep 17 00:00:00 2001 From: TomW Date: Wed, 22 Apr 2015 19:26:52 +0100 Subject: [PATCH] Fixed stupid bug in FPU rounding mode in recompiler, fixed particle explosions in Quake. --- src/codegen_ops_x86.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen_ops_x86.h b/src/codegen_ops_x86.h index cf7605f..9109cb5 100644 --- a/src/codegen_ops_x86.h +++ b/src/codegen_ops_x86.h @@ -1562,8 +1562,8 @@ static int FP_LOAD_REG_INT(int reg) addbyte(0x7c); addbyte(0x24); addbyte(0x04); - addbyte(0xbe); /*MOVL ESI, 0x300*/ - addlong(0x300); + addbyte(0xbe); /*MOVL ESI, 0xc00*/ + addlong(0xc00); addbyte(0x0b); /*ORL ESI, [ESP+4]*/ addbyte(0x74); addbyte(0x24);