mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
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:
parent
c3d9120c3b
commit
872a3596bc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user