Fixed bug preventing FXAM from clearing C1 flag - fixes bugs in Half-Life, Final Fantasy VII, DEU and probably others.

This commit is contained in:
TomW 2015-08-29 14:41:32 +01:00
commit 5ac8fd496a

View file

@ -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;