diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-25 14:21:56 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-25 14:21:56 +0000 |
commit | d8bc866c4a7550ed1b596560125eb77edf618db3 (patch) | |
tree | fecc49ffd395261f3907b76d836e5bfba4d7e702 /src/mame/drivers/koftball.c | |
parent | 6c40f0f2920a208ff456d8f34f3684367ef3fd8a (diff) |
TIMER_CALLBACK_DEVICE_MEMBER modernization part 2 (no whatsnew)
Diffstat (limited to 'src/mame/drivers/koftball.c')
-rw-r--r-- | src/mame/drivers/koftball.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/koftball.c b/src/mame/drivers/koftball.c index def63f857c0..2a4cd84782d 100644 --- a/src/mame/drivers/koftball.c +++ b/src/mame/drivers/koftball.c @@ -66,6 +66,7 @@ public: TILE_GET_INFO_MEMBER(get_t2_tile_info); virtual void video_start(); UINT32 screen_update_koftball(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + TIMER_DEVICE_CALLBACK_MEMBER(bmc_interrupt); }; @@ -209,19 +210,18 @@ static INPUT_PORTS_START( koftball ) INPUT_PORTS_END -static TIMER_DEVICE_CALLBACK( bmc_interrupt ) +TIMER_DEVICE_CALLBACK_MEMBER(koftball_state::bmc_interrupt) { - koftball_state *state = timer.machine().driver_data<koftball_state>(); int scanline = param; if(scanline == 240) - state->m_maincpu->set_input_line(2, HOLD_LINE); + m_maincpu->set_input_line(2, HOLD_LINE); if(scanline == 128) - state->m_maincpu->set_input_line(3, HOLD_LINE); + m_maincpu->set_input_line(3, HOLD_LINE); if(scanline == 64) - state->m_maincpu->set_input_line(6, HOLD_LINE); + m_maincpu->set_input_line(6, HOLD_LINE); } static const gfx_layout tilelayout = @@ -243,7 +243,7 @@ GFXDECODE_END static MACHINE_CONFIG_START( koftball, koftball_state ) MCFG_CPU_ADD("maincpu", M68000, 21477270/2 ) MCFG_CPU_PROGRAM_MAP(koftball_mem) - MCFG_TIMER_ADD_SCANLINE("scantimer", bmc_interrupt, "screen", 0, 1) + MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", koftball_state, bmc_interrupt, "screen", 0, 1) MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_REFRESH_RATE(60) |