summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ms32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ms32.c')
-rw-r--r--src/mame/drivers/ms32.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/ms32.c b/src/mame/drivers/ms32.c
index a4c2ba5abaf..68710289246 100644
--- a/src/mame/drivers/ms32.c
+++ b/src/mame/drivers/ms32.c
@@ -220,7 +220,7 @@ READ32_MEMBER(ms32_state::ms32_read_inputs3)
WRITE32_MEMBER(ms32_state::ms32_sound_w)
{
soundlatch_byte_w(space, 0, data & 0xff);
- cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, ASSERT_LINE);
+ machine().device("audiocpu")->execute().set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
// give the Z80 time to respond
device_spin_until_time(&space.device(), attotime::from_usec(40));
@@ -233,7 +233,7 @@ READ32_MEMBER(ms32_state::ms32_sound_r)
WRITE32_MEMBER(ms32_state::reset_sub_w)
{
- if(data) cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_RESET, PULSE_LINE); // 0 too ?
+ if(data) machine().device("audiocpu")->execute().set_input_line(INPUT_LINE_RESET, PULSE_LINE); // 0 too ?
}
@@ -1292,7 +1292,7 @@ static void irq_init(running_machine &machine)
{
ms32_state *state = machine.driver_data<ms32_state>();
state->m_irqreq = 0;
- cputag_set_input_line(machine, "maincpu", 0, CLEAR_LINE);
+ machine.device("maincpu")->execute().set_input_line(0, CLEAR_LINE);
device_set_irq_callback(machine.device("maincpu"), irq_callback);
}
@@ -1300,7 +1300,7 @@ static void irq_raise(running_machine &machine, int level)
{
ms32_state *state = machine.driver_data<ms32_state>();
state->m_irqreq |= (1<<level);
- cputag_set_input_line(machine, "maincpu", 0, ASSERT_LINE);
+ machine.device("maincpu")->execute().set_input_line(0, ASSERT_LINE);
}
/* TODO: fix this arrangement (derived from old deprecat lib) */
@@ -1346,7 +1346,7 @@ static TIMER_DEVICE_CALLBACK(ms32_interrupt)
READ8_MEMBER(ms32_state::latch_r)
{
- cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, CLEAR_LINE);
+ machine().device("audiocpu")->execute().set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
return soundlatch_byte_r(space,0)^0xff;
}