m68kfpu: add fmod instruction (nw)

This commit is contained in:
Patrick Mackinlay 2020-05-06 20:09:29 +07:00
parent ebd6028b7c
commit dd6c637c0d

View File

@ -1480,6 +1480,16 @@ void fpgen_rm_reg(u16 w2)
m_icount -= 43;
break;
}
case 0x21: // FMOD
{
s8 const mode = float_rounding_mode;
float_rounding_mode = float_round_to_zero;
m_fpr[dst] = floatx80_rem(m_fpr[dst], source);
SET_CONDITION_CODES(m_fpr[dst]);
float_rounding_mode = mode;
m_icount -= 43; // guess
break;
}
case 0x22: // FADD
{
m_fpr[dst] = floatx80_add(m_fpr[dst], source);