diff options
Diffstat (limited to 'src/mame/drivers/thepit.c')
-rw-r--r-- | src/mame/drivers/thepit.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/thepit.c b/src/mame/drivers/thepit.c index ba9265eb31c..ee0d6dc0faa 100644 --- a/src/mame/drivers/thepit.c +++ b/src/mame/drivers/thepit.c @@ -635,12 +635,11 @@ static const ay8910_interface ay8910_config = DEVCB_NULL }; -static INTERRUPT_GEN( vblank_irq ) +INTERRUPT_GEN_MEMBER(thepit_state::vblank_irq) { - thepit_state *state = device->machine().driver_data<thepit_state>(); - if(state->m_nmi_mask) - device->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE); + if(m_nmi_mask) + device.execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE); } static MACHINE_CONFIG_START( thepit, thepit_state ) @@ -648,12 +647,12 @@ static MACHINE_CONFIG_START( thepit, thepit_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", Z80, PIXEL_CLOCK/2) /* 3.072 MHz */ MCFG_CPU_PROGRAM_MAP(thepit_main_map) - MCFG_CPU_VBLANK_INT("screen", vblank_irq) + MCFG_CPU_VBLANK_INT_DRIVER("screen", thepit_state, vblank_irq) MCFG_CPU_ADD("audiocpu", Z80, SOUND_CLOCK/4) /* 2.5 MHz */ MCFG_CPU_PROGRAM_MAP(audio_map) MCFG_CPU_IO_MAP(audio_io_map) - MCFG_CPU_VBLANK_INT("screen", irq0_line_hold) + MCFG_CPU_VBLANK_INT_DRIVER("screen", thepit_state, irq0_line_hold) /* video hardware */ MCFG_GFXDECODE(thepit) |