Ported the x87 fix from the other emulator as well as the GUS one.

Fixed 15bpp mode in all cards.
This commit is contained in:
TC1995
2021-05-30 22:07:22 +02:00
parent 35350a753f
commit fee0ea1d24
3 changed files with 59 additions and 31 deletions

View File

@@ -787,6 +787,8 @@ static int opFLDCW_a32(uint32_t fetchdat)
static int FSTENV()
{
FP_ENTER();
cpu_state.npxs = (cpu_state.npxs & ~(7 << 11)) | ((cpu_state.TOP & 7) << 11);
switch ((cr0 & 1) | (cpu_state.op32 & 0x100))
{
case 0x000: /*16-bit real mode*/