summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tankbust.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tankbust.c')
-rw-r--r--src/mame/drivers/tankbust.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/tankbust.c b/src/mame/drivers/tankbust.c
index e3d6bce417c..9d4d4a8711b 100644
--- a/src/mame/drivers/tankbust.c
+++ b/src/mame/drivers/tankbust.c
@@ -317,12 +317,11 @@ void tankbust_state::machine_reset()
m_variable_data = 0x11;
}
-static INTERRUPT_GEN( vblank_irq )
+INTERRUPT_GEN_MEMBER(tankbust_state::vblank_irq)
{
- tankbust_state *state = device->machine().driver_data<tankbust_state>();
- if(state->m_irq_mask)
- device->execute().set_input_line(0, HOLD_LINE);
+ if(m_irq_mask)
+ device.execute().set_input_line(0, HOLD_LINE);
}
static MACHINE_CONFIG_START( tankbust, tankbust_state )
@@ -330,7 +329,7 @@ static MACHINE_CONFIG_START( tankbust, tankbust_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", Z80, XTAL_14_31818MHz/2) /* Verified on PCB */
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_CPU_VBLANK_INT("screen", vblank_irq)
+ MCFG_CPU_VBLANK_INT_DRIVER("screen", tankbust_state, vblank_irq)
MCFG_CPU_ADD("sub", Z80, XTAL_14_31818MHz/4) /* Verified on PCB */
// MCFG_CPU_ADD("sub", Z80, XTAL_14_31818MHz/3) /* Accurate to audio recording, but apparently incorrect clock */