diff options
Diffstat (limited to 'src/mame/drivers/thunderx.c')
-rw-r--r-- | src/mame/drivers/thunderx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/thunderx.c b/src/mame/drivers/thunderx.c index 7ca009fd0a1..72ba330938c 100644 --- a/src/mame/drivers/thunderx.c +++ b/src/mame/drivers/thunderx.c @@ -21,12 +21,11 @@ static KONAMI_SETLINES_CALLBACK( thunderx_banking ); /***************************************************************************/ -static INTERRUPT_GEN( scontra_interrupt ) +INTERRUPT_GEN_MEMBER(thunderx_state::scontra_interrupt) { - thunderx_state *state = device->machine().driver_data<thunderx_state>(); - if (k052109_is_irq_enabled(state->m_k052109)) - device->execute().set_input_line(KONAMI_IRQ_LINE, HOLD_LINE); + if (k052109_is_irq_enabled(m_k052109)) + device.execute().set_input_line(KONAMI_IRQ_LINE, HOLD_LINE); } static TIMER_CALLBACK( thunderx_firq_callback ) @@ -658,7 +657,7 @@ static MACHINE_CONFIG_START( scontra, thunderx_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", KONAMI, XTAL_24MHz/8) /* Verified on pcb, CPU is 052001 */ MCFG_CPU_PROGRAM_MAP(scontra_map) - MCFG_CPU_VBLANK_INT("screen", scontra_interrupt) + MCFG_CPU_VBLANK_INT_DRIVER("screen", thunderx_state, scontra_interrupt) MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz) /* verified on pcb */ MCFG_CPU_PROGRAM_MAP(scontra_sound_map) @@ -701,7 +700,7 @@ static MACHINE_CONFIG_START( thunderx, thunderx_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", KONAMI, 3000000) /* ? */ MCFG_CPU_PROGRAM_MAP(thunderx_map) - MCFG_CPU_VBLANK_INT("screen", scontra_interrupt) + MCFG_CPU_VBLANK_INT_DRIVER("screen", thunderx_state, scontra_interrupt) MCFG_CPU_ADD("audiocpu", Z80, 3579545) /* ? */ MCFG_CPU_PROGRAM_MAP(thunderx_sound_map) |