summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/milton6805.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/milton6805.cpp')
-rw-r--r--src/mame/drivers/milton6805.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/milton6805.cpp b/src/mame/drivers/milton6805.cpp
index 03789aff3c8..89f5de74f16 100644
--- a/src/mame/drivers/milton6805.cpp
+++ b/src/mame/drivers/milton6805.cpp
@@ -115,11 +115,11 @@ void milton_state::prg_map(address_map &map)
static INPUT_PORTS_START( milton )
INPUT_PORTS_END
-MACHINE_CONFIG_START(milton_state::milton)
-
+void milton_state::milton(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", M6805, 3120000) // MC6805P2, needs a CPU core
- MCFG_DEVICE_PROGRAM_MAP(prg_map)
+ M6805(config, m_maincpu, 3120000); // MC6805P2, needs a CPU core
+ m_maincpu->set_addrmap(AS_PROGRAM, &milton_state::prg_map);
// GROMs. They still require a ready callback and external clock
// of 3120000/8 Hz, pulsing their glock_in line (see tmc0430.cpp and ti99_4x.cpp)
@@ -127,9 +127,8 @@ MACHINE_CONFIG_START(milton_state::milton)
TMC0430(config, "grom4", "groms", 0x2000, 1);
SPEAKER(config, "speaker").front_center();
- MCFG_DEVICE_ADD("sp0250", SP0250, 3120000)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
-MACHINE_CONFIG_END
+ SP0250(config, "sp0250", 3120000).add_route(ALL_OUTPUTS, "speaker", 1.0);
+}
/***************************************************************************