summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gridlee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gridlee.cpp')
-rw-r--r--src/mame/drivers/gridlee.cpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/mame/drivers/gridlee.cpp b/src/mame/drivers/gridlee.cpp
index a796146039f..4bd8b56548e 100644
--- a/src/mame/drivers/gridlee.cpp
+++ b/src/mame/drivers/gridlee.cpp
@@ -396,11 +396,11 @@ static const char *const sample_names[] =
*
*************************************/
-MACHINE_CONFIG_START(gridlee_state::gridlee)
-
+void gridlee_state::gridlee(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", M6809, GRIDLEE_CPU_CLOCK)
- MCFG_DEVICE_PROGRAM_MAP(cpu1_map)
+ M6809(config, m_maincpu, GRIDLEE_CPU_CLOCK);
+ m_maincpu->set_addrmap(AS_PROGRAM, &gridlee_state::cpu1_map);
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
@@ -414,25 +414,24 @@ MACHINE_CONFIG_START(gridlee_state::gridlee)
m_latch->q_out_cb<7>().set(FUNC(gridlee_state::cocktail_flip_w));
/* video hardware */
- MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_RAW_PARAMS(GRIDLEE_PIXEL_CLOCK, GRIDLEE_HTOTAL, GRIDLEE_HBEND, GRIDLEE_HBSTART, GRIDLEE_VTOTAL, GRIDLEE_VBEND, GRIDLEE_VBSTART)
- MCFG_SCREEN_UPDATE_DRIVER(gridlee_state, screen_update_gridlee)
- MCFG_SCREEN_PALETTE("palette")
+ SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
+ m_screen->set_raw(GRIDLEE_PIXEL_CLOCK, GRIDLEE_HTOTAL, GRIDLEE_HBEND, GRIDLEE_HBSTART, GRIDLEE_VTOTAL, GRIDLEE_VBEND, GRIDLEE_VBSTART);
+ m_screen->set_screen_update(FUNC(gridlee_state::screen_update_gridlee));
+ m_screen->set_palette(m_palette);
- MCFG_PALETTE_ADD("palette", 2048)
- MCFG_PALETTE_INIT_OWNER(gridlee_state,gridlee)
+ PALETTE(config, m_palette, 2048);
+ m_palette->set_init(FUNC(gridlee_state::palette_init_gridlee));
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("gridlee", GRIDLEE, 0)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+ GRIDLEE(config, "gridlee", 0).add_route(ALL_OUTPUTS, "mono", 1.0);
- MCFG_DEVICE_ADD("samples", SAMPLES)
- MCFG_SAMPLES_CHANNELS(8)
- MCFG_SAMPLES_NAMES(sample_names)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
-MACHINE_CONFIG_END
+ SAMPLES(config, m_samples);
+ m_samples->set_channels(8);
+ m_samples->set_samples_names(sample_names);
+ m_samples->add_route(ALL_OUTPUTS, "mono", 0.40);
+}