summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/centiped.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/centiped.cpp')
-rw-r--r--src/mame/drivers/centiped.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/centiped.cpp b/src/mame/drivers/centiped.cpp
index 82f2988f23e..4320ccc5e10 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);
}
-void centiped_state::machine_start_centiped()
+MACHINE_START_MEMBER(centiped_state,centiped)
{
save_item(NAME(m_oldpos));
save_item(NAME(m_sign));
@@ -453,16 +453,16 @@ void centiped_state::machine_start_centiped()
}
-void centiped_state::machine_reset_centiped()
+MACHINE_RESET_MEMBER(centiped_state,centiped)
{
m_maincpu->set_input_line(0, CLEAR_LINE);
m_prg_bank = 0;
}
-void centiped_state::machine_reset_magworm()
+MACHINE_RESET_MEMBER(centiped_state,magworm)
{
- machine_reset_centiped();
+ MACHINE_RESET_CALL_MEMBER(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) */
- 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_MACHINE_START_OVERRIDE(centiped_state,centiped)
+ MCFG_MACHINE_RESET_OVERRIDE(centiped_state,centiped)
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)
- set_video_start_cb(config, driver_callback_delegate(&video_start_centiped, this));
+ MCFG_VIDEO_START_OVERRIDE(centiped_state,centiped)
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)
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_magworm, this));
+ MCFG_MACHINE_RESET_OVERRIDE(centiped_state,magworm)
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)
- set_video_start_cb(config, driver_callback_delegate(&video_start_milliped, this));
+ MCFG_VIDEO_START_OVERRIDE(centiped_state,milliped)
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)
- set_video_start_cb(config, driver_callback_delegate(&video_start_warlords, this));
+ MCFG_VIDEO_START_OVERRIDE(centiped_state,warlords)
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)
- set_video_start_cb(config, driver_callback_delegate(&video_start_bullsdrt, this));
+ MCFG_VIDEO_START_OVERRIDE(centiped_state,bullsdrt)
/* sound hardware */
SPEAKER(config, "mono").front_center();