summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cobra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cobra.c')
-rw-r--r--src/mame/drivers/cobra.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/cobra.c b/src/mame/drivers/cobra.c
index 613b85ef40f..2eb40fa6a79 100644
--- a/src/mame/drivers/cobra.c
+++ b/src/mame/drivers/cobra.c
@@ -1231,7 +1231,7 @@ void cobra_state::m2sfifo_event_callback(cobra_fifo::EventType event)
{
case cobra_fifo::EVENT_EMPTY:
{
- cputag_set_input_line(machine(), "subcpu", INPUT_LINE_IRQ0, CLEAR_LINE);
+ machine().device("subcpu")->execute().set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);
// give sub cpu a bit more time to stabilize on the current fifo status
device_spin_until_time(machine().device("maincpu"), attotime::from_usec(1));
@@ -1241,7 +1241,7 @@ void cobra_state::m2sfifo_event_callback(cobra_fifo::EventType event)
if (!m_m2s_int_mode)
m_main_int_active |= MAIN_INT_M2S;
- cputag_set_input_line(machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE);
+ machine().device("maincpu")->execute().set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
}
// EXISR needs to update for the *next* instruction during FIFO tests
@@ -1427,7 +1427,7 @@ WRITE64_MEMBER(cobra_state::main_fifo_w)
if (!m_m2s_int_mode)
m_main_int_active &= ~MAIN_INT_M2S;
- cputag_set_input_line(space.machine(), "subcpu", INPUT_LINE_IRQ0, ASSERT_LINE);
+ space.machine().device("subcpu")->execute().set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
// EXISR needs to update for the *next* instruction during FIFO tests
// TODO: try to abort the timeslice before the next instruction?
@@ -1484,7 +1484,7 @@ WRITE64_MEMBER(cobra_state::main_fifo_w)
if ((m_vblank_enable & 0x80) == 0)
{
// clear the interrupt
- cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, CLEAR_LINE);
+ space.machine().device("maincpu")->execute().set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);
}
}
if (ACCESSING_BITS_16_23)
@@ -1503,7 +1503,7 @@ WRITE64_MEMBER(cobra_state::main_fifo_w)
m_main_int_active &= ~MAIN_INT_S2M;
// clear the interrupt
- cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, CLEAR_LINE);
+ space.machine().device("maincpu")->execute().set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);
}
}
if (ACCESSING_BITS_8_15)
@@ -1529,7 +1529,7 @@ WRITE64_MEMBER(cobra_state::main_fifo_w)
m_main_int_active &= ~MAIN_INT_M2S;
// clear the interrupt
- cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, CLEAR_LINE);
+ space.machine().device("maincpu")->execute().set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);
}
}
@@ -1722,7 +1722,7 @@ WRITE32_MEMBER(cobra_state::sub_mainbd_w)
// fire off an interrupt if enabled
if (m_s2m_int_enable & 0x80)
{
- cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE);
+ space.machine().device("maincpu")->execute().set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
}
}
if (ACCESSING_BITS_16_23)
@@ -3192,7 +3192,7 @@ static INTERRUPT_GEN( cobra_vblank )
if (cobra->m_vblank_enable & 0x80)
{
- cputag_set_input_line(device->machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE);
+ device->machine().device("maincpu")->execute().set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
cobra->m_gfx_unk_flag = 0x80;
}
}