diff options
Diffstat (limited to 'src/mame/drivers/centiped.cpp')
-rw-r--r-- | src/mame/drivers/centiped.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/centiped.cpp b/src/mame/drivers/centiped.cpp index 4320ccc5e10..82f2988f23e 100644 --- a/src/mame/drivers/centiped.cpp +++ b/src/mame/drivers/centiped.cpp @@ -444,7 +444,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(centiped_state::generate_interrupt) m_screen->update_partial(scanline); } -MACHINE_START_MEMBER(centiped_state,centiped) +void centiped_state::machine_start_centiped() { save_item(NAME(m_oldpos)); save_item(NAME(m_sign)); @@ -453,16 +453,16 @@ MACHINE_START_MEMBER(centiped_state,centiped) } -MACHINE_RESET_MEMBER(centiped_state,centiped) +void centiped_state::machine_reset_centiped() { m_maincpu->set_input_line(0, CLEAR_LINE); m_prg_bank = 0; } -MACHINE_RESET_MEMBER(centiped_state,magworm) +void centiped_state::machine_reset_magworm() { - MACHINE_RESET_CALL_MEMBER(centiped); + machine_reset_centiped(); /* kludge: clear RAM so that magworm can be reset cleanly */ memset(m_rambase, 0, 0x400); @@ -1716,8 +1716,8 @@ MACHINE_CONFIG_START(centiped_state::centiped_base) /* basic machine hardware */ MCFG_DEVICE_ADD("maincpu", M6502, 12096000/8) /* 1.512 MHz (slows down to 0.75MHz while accessing playfield RAM) */ - MCFG_MACHINE_START_OVERRIDE(centiped_state,centiped) - MCFG_MACHINE_RESET_OVERRIDE(centiped_state,centiped) + set_machine_start_cb(config, driver_callback_delegate(&machine_start_centiped, this)); + set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_centiped, this)); MCFG_ATARIVGEAROM_ADD("earom") @@ -1744,7 +1744,7 @@ MACHINE_CONFIG_START(centiped_state::centiped_base) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_centiped) MCFG_PALETTE_ADD("palette", 4+4*4*4*4) - MCFG_VIDEO_START_OVERRIDE(centiped_state,centiped) + set_video_start_cb(config, driver_callback_delegate(&video_start_centiped, this)); MACHINE_CONFIG_END @@ -1817,7 +1817,7 @@ MACHINE_CONFIG_START(centiped_state::magworm) /* basic machine hardware */ MCFG_DEVICE_MODIFY("maincpu") MCFG_DEVICE_PROGRAM_MAP(magworm_map) - MCFG_MACHINE_RESET_OVERRIDE(centiped_state,magworm) + set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_magworm, this)); MCFG_DEVICE_MODIFY("outlatch") // 12A MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, centiped_state, flip_screen_w)) @@ -1848,7 +1848,7 @@ MACHINE_CONFIG_START(centiped_state::milliped) MCFG_PALETTE_MODIFY("palette") MCFG_PALETTE_ENTRIES(4*4+4*4*4*4*4) - MCFG_VIDEO_START_OVERRIDE(centiped_state,milliped) + set_video_start_cb(config, driver_callback_delegate(&video_start_milliped, this)); MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_UPDATE_DRIVER(centiped_state, screen_update_milliped) @@ -1895,7 +1895,7 @@ MACHINE_CONFIG_START(centiped_state::warlords) MCFG_PALETTE_ENTRIES(8*4+8*4) MCFG_PALETTE_INIT_OWNER(centiped_state,warlords) - MCFG_VIDEO_START_OVERRIDE(centiped_state,warlords) + set_video_start_cb(config, driver_callback_delegate(&video_start_warlords, this)); MCFG_SCREEN_MODIFY("screen") MCFG_SCREEN_UPDATE_DRIVER(centiped_state, screen_update_warlords) @@ -1955,7 +1955,7 @@ MACHINE_CONFIG_START(centiped_state::bullsdrt) MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_centiped) MCFG_PALETTE_ADD("palette", 4+4*4*4*4) - MCFG_VIDEO_START_OVERRIDE(centiped_state,bullsdrt) + set_video_start_cb(config, driver_callback_delegate(&video_start_bullsdrt, this)); /* sound hardware */ SPEAKER(config, "mono").front_center(); |