summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/halleys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/halleys.c')
-rw-r--r--src/mame/drivers/halleys.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/halleys.c b/src/mame/drivers/halleys.c
index 7e55bb91ce3..b6396924894 100644
--- a/src/mame/drivers/halleys.c
+++ b/src/mame/drivers/halleys.c
@@ -1055,7 +1055,7 @@ WRITE8_MEMBER(halleys_state::blitter_w)
if (i==0 || (i==4 && !data))
{
m_blitter_busy = 0;
- if (m_firq_level) cputag_set_input_line(machine(), "maincpu", M6809_FIRQ_LINE, ASSERT_LINE); // make up delayed FIRQ's
+ if (m_firq_level) machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, ASSERT_LINE); // make up delayed FIRQ's
}
else
{
@@ -1555,16 +1555,16 @@ static TIMER_DEVICE_CALLBACK( halleys_scanline )
// In Halley's Comet, NMI is used exclusively to handle coin input
case 56*3:
- cputag_set_input_line(timer.machine(),"maincpu", INPUT_LINE_NMI, PULSE_LINE);
+ timer.machine().device("maincpu")->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
break;
// FIRQ drives gameplay; we need both types of NMI each frame.
case 56*2:
- state->m_mVectorType = 1; cputag_set_input_line(timer.machine(),"maincpu", M6809_FIRQ_LINE, ASSERT_LINE);
+ state->m_mVectorType = 1; timer.machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, ASSERT_LINE);
break;
case 56:
- state->m_mVectorType = 0; cputag_set_input_line(timer.machine(),"maincpu", M6809_FIRQ_LINE, ASSERT_LINE);
+ state->m_mVectorType = 0; timer.machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, ASSERT_LINE);
break;
}
}
@@ -1582,13 +1582,13 @@ static TIMER_DEVICE_CALLBACK( benberob_scanline )
break;
case 56*3:
- cputag_set_input_line(timer.machine(),"maincpu", INPUT_LINE_NMI, PULSE_LINE);
+ timer.machine().device("maincpu")->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
break;
case 56*2:
case 56*1:
// FIRQ must not happen when the blitter is being updated or it'll cause serious screen artifacts
- if (!state->m_blitter_busy) cputag_set_input_line(timer.machine(),"maincpu", M6809_FIRQ_LINE, ASSERT_LINE); else state->m_firq_level++;
+ if (!state->m_blitter_busy) timer.machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, ASSERT_LINE); else state->m_firq_level++;
break;
}
}
@@ -1605,7 +1605,7 @@ WRITE8_MEMBER(halleys_state::firq_ack_w)
m_io_ram[0x9c] = data;
if (m_firq_level) m_firq_level--;
- cputag_set_input_line(machine(), "maincpu", M6809_FIRQ_LINE, CLEAR_LINE);
+ machine().device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE, CLEAR_LINE);
}
@@ -1620,7 +1620,7 @@ WRITE8_MEMBER(halleys_state::soundcommand_w)
m_io_ram[0x8a] = data;
soundlatch_byte_w(space,offset,data);
- cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
+ machine().device("audiocpu")->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
}