Correct top-of-stack value stored by FSTENV. Fixes rendering in

CNCD - Inside
This commit is contained in:
SarahW 2021-05-30 15:23:11 +01:00
commit 51516c0bb1

View file

@ -781,6 +781,8 @@ static int FSTENV()
{
FP_ENTER();
if (fplog) pclog("FSTENV %08X:%08X\n", easeg, cpu_state.eaaddr);
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*/