mirror of
https://github.com/holub/mame
synced 2025-05-19 03:59:35 +03:00
Better fix for Break Thru
This commit is contained in:
parent
d1698396f5
commit
e139c6edde
@ -72,6 +72,9 @@ static WRITE8_HANDLER( brkthru_1803_w )
|
|||||||
/* bit 0 = NMI enable */
|
/* bit 0 = NMI enable */
|
||||||
state->m_nmi_mask = ~data & 1;
|
state->m_nmi_mask = ~data & 1;
|
||||||
|
|
||||||
|
if(data & 2)
|
||||||
|
device_set_input_line(state->m_maincpu, 0, CLEAR_LINE);
|
||||||
|
|
||||||
/* bit 1 = ? maybe IRQ acknowledge */
|
/* bit 1 = ? maybe IRQ acknowledge */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,6 +85,10 @@ static WRITE8_HANDLER( darwin_0803_w )
|
|||||||
state->m_nmi_mask = data & 1;
|
state->m_nmi_mask = data & 1;
|
||||||
logerror("0803 %02X\n",data);
|
logerror("0803 %02X\n",data);
|
||||||
|
|
||||||
|
if(data & 2)
|
||||||
|
device_set_input_line(state->m_maincpu, 0, CLEAR_LINE);
|
||||||
|
|
||||||
|
|
||||||
/* bit 1 = ? maybe IRQ acknowledge */
|
/* bit 1 = ? maybe IRQ acknowledge */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +104,8 @@ static INPUT_CHANGED( coin_inserted )
|
|||||||
brkthru_state *state = field.machine().driver_data<brkthru_state>();
|
brkthru_state *state = field.machine().driver_data<brkthru_state>();
|
||||||
|
|
||||||
/* coin insertion causes an IRQ */
|
/* coin insertion causes an IRQ */
|
||||||
device_set_input_line(state->m_maincpu, 0, newval ? CLEAR_LINE : ASSERT_LINE);
|
if(oldval)
|
||||||
|
device_set_input_line(state->m_maincpu, 0, ASSERT_LINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user