summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taito_o.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taito_o.c')
-rw-r--r--src/mame/drivers/taito_o.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/taito_o.c b/src/mame/drivers/taito_o.c
index 7f875f9421c..ffbae4fd514 100644
--- a/src/mame/drivers/taito_o.c
+++ b/src/mame/drivers/taito_o.c
@@ -212,16 +212,15 @@ static GFXDECODE_START( parentj )
GFXDECODE_END
/* unknown sources ... */
-static TIMER_DEVICE_CALLBACK( parentj_interrupt )
+TIMER_DEVICE_CALLBACK_MEMBER(taitoo_state::parentj_interrupt)
{
- taitoo_state *state = timer.machine().driver_data<taitoo_state>();
int scanline = param;
if(scanline == 448)
- state->m_maincpu->set_input_line(4, HOLD_LINE);
+ m_maincpu->set_input_line(4, HOLD_LINE);
if(scanline == 0)
- state->m_maincpu->set_input_line(5, HOLD_LINE);
+ m_maincpu->set_input_line(5, HOLD_LINE);
}
static const ym2203_interface ym2203_config =
@@ -253,7 +252,7 @@ static MACHINE_CONFIG_START( parentj, taitoo_state )
MCFG_CPU_ADD("maincpu", M68000,12000000 ) /*?? MHz */
MCFG_CPU_PROGRAM_MAP(parentj_map)
- MCFG_TIMER_ADD_SCANLINE("scantimer", parentj_interrupt, "screen", 0, 1)
+ MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", taitoo_state, parentj_interrupt, "screen", 0, 1)
MCFG_SCREEN_ADD("screen", RASTER)