summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/instantm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/instantm.cpp')
-rw-r--r--src/mame/drivers/instantm.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/instantm.cpp b/src/mame/drivers/instantm.cpp
index 7044be5d585..42b2f3a2967 100644
--- a/src/mame/drivers/instantm.cpp
+++ b/src/mame/drivers/instantm.cpp
@@ -126,26 +126,27 @@ void instantm_state::machine_reset()
// OSC1 = XTAL(3'579'545)
-MACHINE_CONFIG_START(instantm_state::instantm)
+void instantm_state::instantm(machine_config &config)
+{
/* basic machine hardware */
- MCFG_DEVICE_ADD("maincpu", Z80, XTAL(3'579'545))
- MCFG_DEVICE_PROGRAM_MAP(main_map)
+ Z80(config, m_maincpu, XTAL(3'579'545));
+ m_maincpu->set_addrmap(AS_PROGRAM, &instantm_state::main_map);
- MCFG_DEVICE_ADD("subcpu", Z80, XTAL(3'579'545))
- MCFG_DEVICE_PROGRAM_MAP(sub_map)
- MCFG_DEVICE_IO_MAP(sub_io)
+ z80_device &subcpu(Z80(config, "subcpu", XTAL(3'579'545)));
+ subcpu.set_addrmap(AS_PROGRAM, &instantm_state::sub_map);
+ subcpu.set_addrmap(AS_IO, &instantm_state::sub_io);
// all guesswork
clock_device &voice_clock(CLOCK(config, "voice_clock", 24000));
voice_clock.signal_handler().set(FUNC(instantm_state::clock_w));
SPEAKER(config, "speaker").front_center();
- MCFG_DEVICE_ADD("dac", MC1408, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
+ MC1408(config, "dac", 0).add_route(ALL_OUTPUTS, "speaker", 0.5);
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref"));
vref.set_output(5.0);
vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT);
vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT);
-MACHINE_CONFIG_END
+}