Skip to content

Commit

Permalink
implement fmod
Browse files Browse the repository at this point in the history
  • Loading branch information
bebbo committed Nov 25, 2021
1 parent 2f36e83 commit c37870a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions musashi/m68kfpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,13 @@ static void fpgen_rm_reg(uint16 w2)
USE_CYCLES(43);
break;
}
case 0x21: // FMOD
{
REG_FP[dst] = floatx80_rem(REG_FP[dst], source);
SET_CONDITION_CODES(REG_FP[dst]);
USE_CYCLES(43);
break;
}
case 0x24: // FSGLDIV
{
REG_FP[dst] = double_to_fx80((float)fx80_to_double(floatx80_div(REG_FP[dst], source)));
Expand Down

0 comments on commit c37870a

Please sign in to comment.