summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/cosmic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/cosmic.cpp')
-rw-r--r--src/mame/drivers/cosmic.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/cosmic.cpp b/src/mame/drivers/cosmic.cpp
index cc683d69cb8..1c098288a54 100644
--- a/src/mame/drivers/cosmic.cpp
+++ b/src/mame/drivers/cosmic.cpp
@@ -973,7 +973,7 @@ static const char *const cosmicg_sample_names[] =
};
-void cosmic_state::machine_start_cosmic()
+MACHINE_START_MEMBER(cosmic_state,cosmic)
{
save_item(NAME(m_sound_enabled));
save_item(NAME(m_march_select));
@@ -985,7 +985,7 @@ void cosmic_state::machine_start_cosmic()
save_item(NAME(m_color_registers));
}
-void cosmic_state::machine_reset_cosmic()
+MACHINE_RESET_MEMBER(cosmic_state,cosmic)
{
m_pixel_clock = 0;
m_background_enable = 0;
@@ -994,7 +994,7 @@ void cosmic_state::machine_reset_cosmic()
m_color_registers[2] = 0;
}
-void cosmic_state::machine_reset_cosmicg()
+MACHINE_RESET_MEMBER(cosmic_state,cosmicg)
{
m_pixel_clock = 0;
m_background_enable = 0;
@@ -1010,8 +1010,8 @@ MACHINE_CONFIG_START(cosmic_state::cosmic)
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", Z80,Z80_MASTER_CLOCK/6) /* 1.8026 MHz */
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_cosmic, this));
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_cosmic, this));
+ MCFG_MACHINE_START_OVERRIDE(cosmic_state,cosmic)
+ MCFG_MACHINE_RESET_OVERRIDE(cosmic_state,cosmic)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -1098,8 +1098,8 @@ MACHINE_CONFIG_START(cosmic_state::cosmicg)
fed to the tms9904 or tms9980. Also, I have never heard of a tms9900/9980 operating under
1.5MHz. So, if someone can check this... */
- set_machine_start_cb(config, driver_callback_delegate(&machine_start_cosmic, this));
- set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_cosmicg, this));
+ MCFG_MACHINE_START_OVERRIDE(cosmic_state,cosmic)
+ MCFG_MACHINE_RESET_OVERRIDE(cosmic_state,cosmicg)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)