summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sprint2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sprint2.cpp')
-rw-r--r--src/mame/drivers/sprint2.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/mame/drivers/sprint2.cpp b/src/mame/drivers/sprint2.cpp
index 3db9afd6015..c10ed7f9300 100644
--- a/src/mame/drivers/sprint2.cpp
+++ b/src/mame/drivers/sprint2.cpp
@@ -489,23 +489,23 @@ static GFXDECODE_START( gfx_sprint2 )
GFXDECODE_END
-void sprint2_state::sprint2(machine_config &config)
-{
+MACHINE_CONFIG_START(sprint2_state::sprint2)
+
/* basic machine hardware */
- M6502(config, m_maincpu, 12.096_MHz_XTAL / 16);
- m_maincpu->set_addrmap(AS_PROGRAM, &sprint2_state::sprint2_map);
- m_maincpu->set_vblank_int("screen", FUNC(sprint2_state::sprint2));
+ MCFG_DEVICE_ADD("maincpu", M6502, 12.096_MHz_XTAL / 16)
+ MCFG_DEVICE_PROGRAM_MAP(sprint2_map)
+ MCFG_DEVICE_VBLANK_INT_DRIVER("screen", sprint2_state, sprint2)
WATCHDOG_TIMER(config, m_watchdog).set_vblank_count(m_screen, 8);
/* video hardware */
- SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
- m_screen->set_raw(12.096_MHz_XTAL, 768, 0, 512, 262, 0, 224);
- m_screen->set_screen_update(FUNC(sprint2_state::screen_update_sprint2));
- m_screen->screen_vblank().set(FUNC(sprint2_state::screen_vblank_sprint2));
- m_screen->set_palette(m_palette);
+ MCFG_SCREEN_ADD(m_screen, RASTER)
+ MCFG_SCREEN_RAW_PARAMS(12.096_MHz_XTAL, 768, 0, 512, 262, 0, 224)
+ MCFG_SCREEN_UPDATE_DRIVER(sprint2_state, screen_update_sprint2)
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, sprint2_state, screen_vblank_sprint2))
+ MCFG_SCREEN_PALETTE(m_palette)
- GFXDECODE(config, m_gfxdecode, m_palette, gfx_sprint2);
+ MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, m_palette, gfx_sprint2)
PALETTE(config, m_palette, FUNC(sprint2_state::sprint2_palette), 12, 4);
/* sound hardware */
@@ -520,40 +520,40 @@ void sprint2_state::sprint2(machine_config &config)
m_outlatch->q_out_cb<4>().set_output("led1"); // START LAMP2
//m_outlatch->q_out_cb<6>().set(FUNC(sprint2_state::sprint2_spare_w));
- DISCRETE(config, m_discrete, sprint2_discrete);
- m_discrete->add_route(0, "lspeaker", 1.0);
- m_discrete->add_route(1, "rspeaker", 1.0);
-}
+ MCFG_DEVICE_ADD("discrete", DISCRETE, sprint2_discrete)
+ MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
+ MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
+MACHINE_CONFIG_END
-void sprint2_state::sprint1(machine_config &config)
-{
+MACHINE_CONFIG_START(sprint2_state::sprint1)
sprint2(config);
/* sound hardware */
- config.device_remove("lspeaker");
- config.device_remove("rspeaker");
+ MCFG_DEVICE_REMOVE("lspeaker")
+ MCFG_DEVICE_REMOVE("rspeaker")
SPEAKER(config, "mono").front_center();
- config.device_remove("discrete");
+ MCFG_DEVICE_REMOVE("discrete")
- DISCRETE(config, m_discrete, sprint1_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
-}
+ MCFG_DEVICE_ADD("discrete", DISCRETE, sprint1_discrete)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+MACHINE_CONFIG_END
-void sprint2_state::dominos(machine_config &config)
-{
+MACHINE_CONFIG_START(sprint2_state::dominos)
sprint2(config);
/* sound hardware */
- config.device_remove("lspeaker");
- config.device_remove("rspeaker");
+ MCFG_DEVICE_REMOVE("lspeaker")
+ MCFG_DEVICE_REMOVE("rspeaker")
SPEAKER(config, "mono").front_center();
- config.device_remove("discrete");
+ MCFG_DEVICE_REMOVE("discrete")
- DISCRETE(config, m_discrete, dominos_discrete).add_route(ALL_OUTPUTS, "mono", 1.0);
-}
+ MCFG_DEVICE_ADD("discrete", DISCRETE, dominos_discrete)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+MACHINE_CONFIG_END
void sprint2_state::dominos4(machine_config &config)
{