Skip to content

Commit

Permalink
Correct top-of-stack value stored by FSTENV. Fixes rendering in
Browse files Browse the repository at this point in the history
CNCD - Inside
  • Loading branch information
sarah-walker-pcem committed May 30, 2021
1 parent e8d6266 commit 51516c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/x87_ops_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down

0 comments on commit 51516c0

Please sign in to comment.