mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
Fixing interrupt handling in several drivers using 6809 that pulsed interrupts
in a way that broke with the new 6809 core (nw)
This commit is contained in:
parent
f156419660
commit
aaa7936ef4
@ -1412,7 +1412,7 @@ WRITE8_MEMBER(bfcobra_state::meter_w)
|
||||
if (changed & (1 << i))
|
||||
{
|
||||
MechMtr_update(i, data & (1 << i) );
|
||||
generic_pulse_irq_line(space.device().execute(), M6809_FIRQ_LINE, 1);
|
||||
space.device().execute().set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ INTERRUPT_GEN_MEMBER(bfm_sc1_state::timer_irq)
|
||||
|
||||
m_sc1_Inputs[2] = ioport("STROBE0")->read();
|
||||
|
||||
generic_pulse_irq_line(device.execute(), M6809_IRQ_LINE, 1);
|
||||
machine().device("maincpu")->execute().set_input_line(M6809_IRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -326,7 +326,7 @@ WRITE8_MEMBER(bfm_sc1_state::mmtr_w)
|
||||
if ( changed & (1 << i) )
|
||||
{
|
||||
MechMtr_update(i, data & (1 << i) );
|
||||
generic_pulse_irq_line(machine().device("maincpu")->execute(), M6809_FIRQ_LINE, 1);
|
||||
machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -502,7 +502,7 @@ INTERRUPT_GEN_MEMBER(bfm_sc2_state::timer_irq)
|
||||
m_irq_timer_stat = 0x01;
|
||||
m_irq_status = 0x02;
|
||||
|
||||
generic_pulse_irq_line(device.execute(), M6809_IRQ_LINE, 1);
|
||||
device.execute().set_input_line(M6809_IRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ INTERRUPT_GEN_MEMBER(bfmsys85_state::timer_irq)
|
||||
if ( m_is_timer_enabled )
|
||||
{
|
||||
m_irq_status = 0x01 |0x02; //0xff;
|
||||
generic_pulse_irq_line(device.execute(), M6809_IRQ_LINE, 1);
|
||||
device.execute().set_input_line(M6809_IRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
}
|
||||
|
||||
@ -246,7 +246,7 @@ WRITE8_MEMBER(bfmsys85_state::mmtr_w)
|
||||
for (i=0; i<8; i++)
|
||||
if ( changed & (1 << i) ) MechMtr_update(i, data & (1 << i) );
|
||||
|
||||
if ( data ) generic_pulse_irq_line(machine().device("maincpu")->execute(), M6809_FIRQ_LINE, 1);
|
||||
if ( data ) machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -536,7 +536,7 @@ INPUT_PORTS_END
|
||||
|
||||
INTERRUPT_GEN_MEMBER(sigmab52_state::timer_irq)
|
||||
{
|
||||
generic_pulse_irq_line(device.execute(), M6809_IRQ_LINE, 1);
|
||||
device.execute().set_input_line(M6809_IRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -397,7 +397,7 @@ INTERRUPT_GEN_MEMBER(truco_state::truco_interrupt)
|
||||
{
|
||||
if ( m_trigger == 0 )
|
||||
{
|
||||
generic_pulse_irq_line(device.execute(), M6809_IRQ_LINE, 1);
|
||||
device.execute().set_input_line(M6809_IRQ_LINE, HOLD_LINE);
|
||||
m_trigger++;
|
||||
}
|
||||
} else
|
||||
|
@ -1101,7 +1101,7 @@ MACHINE_CONFIG_END
|
||||
|
||||
INTERRUPT_GEN_MEMBER(wecleman_state::hotchase_sound_timer)
|
||||
{
|
||||
generic_pulse_irq_line(device.execute(), M6809_FIRQ_LINE, 1);
|
||||
device.execute().set_input_line(M6809_FIRQ_LINE, HOLD_LINE);
|
||||
}
|
||||
|
||||
static const k051316_interface hotchase_k051316_intf_0 =
|
||||
|
Loading…
Reference in New Issue
Block a user