Fixed MT#08333, Simpsons attract mode music cuts off because it waits forever in a halt instruct. The ld ($fa00),a acks the NMI and the following halt instruction should wait for the next one. Some research shows the Z80 checks NMI in the last T cycle of an instruction, which may explain why the hack was already needed. [smf]

This commit is contained in:
smf- 2022-05-30 13:13:42 +01:00
parent c3d9120c3b
commit 872a3596bc

View File

@ -174,7 +174,7 @@ void simpsons_state::z80_arm_nmi_w(uint8_t data)
void simpsons_state::z80_nmi_w(int state)
{
if(state && m_nmi_enabled && machine().time().as_ticks(m_audiocpu->clock()) > m_nmi_enabled + 1) {
if(state && m_nmi_enabled && machine().time().as_ticks(m_audiocpu->clock()) > m_nmi_enabled + 3) {
m_nmi_enabled = 0;
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);