From 5ac8fd496a976c52b8b11c254bb28af61e61b71f Mon Sep 17 00:00:00 2001 From: TomW Date: Sat, 29 Aug 2015 14:41:32 +0100 Subject: [PATCH] Fixed bug preventing FXAM from clearing C1 flag - fixes bugs in Half-Life, Final Fantasy VII, DEU and probably others. --- src/x87_ops_misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x87_ops_misc.h b/src/x87_ops_misc.h index eb8de1f..d86c7a8 100644 --- a/src/x87_ops_misc.h +++ b/src/x87_ops_misc.h @@ -385,7 +385,7 @@ static int opFXAM(uint32_t fetchdat) FP_ENTER(); pc++; if (fplog) pclog("FXAM %i %f\n", tag[TOP&7], ST(0)); - npxs &= ~(C0|C2|C3); + npxs &= ~(C0|C1|C2|C3); if (tag[TOP&7] == 3) npxs |= (C0|C3); else if (ST(0) == 0.0) npxs |= C3; else npxs |= C2;