ns32081: better fix for movif

This commit is contained in:
Patrick Mackinlay 2020-10-10 13:16:50 +07:00
parent b323101d13
commit ac8bba0759

View File

@ -206,7 +206,7 @@ void ns32081_device::write_op(u16 data)
switch ((m_opword >> 3) & 7)
{
case 0: // movif
m_op[0].expected = (size == SIZE_B) ? 2 : (size + 1);
m_op[0].expected = size + 1;
m_op[2].expected = f_length;
break;
case 1: // lfsr
@ -300,7 +300,7 @@ void ns32081_device::write_op(u16 data)
}
// start execution when all operands are available
if (m_state == OPERAND && m_op[0].issued == m_op[0].expected && m_op[1].issued == m_op[1].expected)
if (m_state == OPERAND && m_op[0].issued >= m_op[0].expected && m_op[1].issued >= m_op[1].expected)
execute();
}