From 6c631adc7eb4121c79eea2d3f4b048e131817bab Mon Sep 17 00:00:00 2001 From: TomW Date: Sun, 15 Dec 2013 15:41:29 +0000 Subject: [PATCH] Added quick hack to FCOMPP to fix 80387 detection. Quake (and presumably some other stuff) works in Windows again. --- src/x87.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/x87.c b/src/x87.c index 7dd7f6b..3dbdb4e 100644 --- a/src/x87.c +++ b/src/x87.c @@ -1237,8 +1237,12 @@ void x87_de() case 0xD9: /*FCOMPP*/ if (fplog) pclog("FCOMPP %f %f\n", ST(0), ST(1)); npxs&=~(C0|C2|C3); - if (ST(0)==ST(1)) npxs|=C3; - else if (ST(0)