Added FENI/FDISI for 8087.

This commit is contained in:
SarahW 2020-01-24 20:33:59 +00:00
commit ea4dd4047c
2 changed files with 31 additions and 2 deletions

View file

@ -1,3 +1,30 @@
static int opFDISI(uint32_t fetchdat)
{
FP_ENTER();
cpu_state.pc++;
if (fpu_type == FPU_8087)
{
cpu_state.npxc |= FPCW_DISI;
CLOCK_CYCLES(x87_timings.fdisi_eni);
}
else
CLOCK_CYCLES(x87_timings.fnop);
return 0;
}
static int opFENI(uint32_t fetchdat)
{
FP_ENTER();
cpu_state.pc++;
if (fpu_type == FPU_8087)
{
cpu_state.npxc &= ~FPCW_DISI;
CLOCK_CYCLES(x87_timings.fdisi_eni);
}
else
CLOCK_CYCLES(x87_timings.fnop);
return 0;
}
static int opFSTSW_AX(uint32_t fetchdat)
{
FP_ENTER();