summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/crimfght.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/crimfght.c')
-rw-r--r--src/mame/drivers/crimfght.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/crimfght.c b/src/mame/drivers/crimfght.c
index 8746e976cfb..0e7d3806f56 100644
--- a/src/mame/drivers/crimfght.c
+++ b/src/mame/drivers/crimfght.c
@@ -28,7 +28,7 @@ static INTERRUPT_GEN( crimfght_interrupt )
crimfght_state *state = device->machine().driver_data<crimfght_state>();
if (k051960_is_irq_enabled(state->m_k051960))
- device_set_input_line(device, KONAMI_IRQ_LINE, HOLD_LINE);
+ device->execute().set_input_line(KONAMI_IRQ_LINE, HOLD_LINE);
}
WRITE8_MEMBER(crimfght_state::crimfght_coin_w)
@@ -40,7 +40,7 @@ WRITE8_MEMBER(crimfght_state::crimfght_coin_w)
WRITE8_MEMBER(crimfght_state::crimfght_sh_irqtrigger_w)
{
soundlatch_byte_w(space, offset, data);
- device_set_input_line(m_audiocpu, 0, HOLD_LINE);
+ m_audiocpu->set_input_line(0, HOLD_LINE);
}
WRITE8_MEMBER(crimfght_state::crimfght_snd_bankswitch_w)
@@ -266,8 +266,8 @@ static MACHINE_START( crimfght )
state->membank("bank2")->configure_entries(0, 12, &ROM[0x10000], 0x2000);
state->membank("bank2")->set_entry(0);
- state->m_maincpu = machine.device("maincpu");
- state->m_audiocpu = machine.device("audiocpu");
+ state->m_maincpu = machine.device<cpu_device>("maincpu");
+ state->m_audiocpu = machine.device<cpu_device>("audiocpu");
state->m_k052109 = machine.device("k052109");
state->m_k051960 = machine.device("k051960");
state->m_k007232 = machine.device("k007232");