diff --git a/src/devices/cpu/m68000/m68kfpu.hxx b/src/devices/cpu/m68000/m68kfpu.hxx index 43471ea4801..866301acb9f 100644 --- a/src/devices/cpu/m68000/m68kfpu.hxx +++ b/src/devices/cpu/m68000/m68kfpu.hxx @@ -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);