mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
m68kfpu: add fmod instruction (nw)
This commit is contained in:
parent
ebd6028b7c
commit
dd6c637c0d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user