summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/csd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/csd.cpp')
-rw-r--r--src/mame/audio/csd.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/audio/csd.cpp b/src/mame/audio/csd.cpp
index e21e871c17b..2ce5c9d8707 100644
--- a/src/mame/audio/csd.cpp
+++ b/src/mame/audio/csd.cpp
@@ -36,9 +36,10 @@ void midway_cheap_squeak_deluxe_device::csdeluxe_map(address_map &map)
// machine configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(midway_cheap_squeak_deluxe_device::device_add_mconfig)
- MCFG_DEVICE_ADD("cpu", M68000, DERIVED_CLOCK(1, 2))
- MCFG_DEVICE_PROGRAM_MAP(csdeluxe_map)
+void midway_cheap_squeak_deluxe_device::device_add_mconfig(machine_config &config)
+{
+ M68000(config, m_cpu, DERIVED_CLOCK(1, 2));
+ m_cpu->set_addrmap(AS_PROGRAM, &midway_cheap_squeak_deluxe_device::csdeluxe_map);
PIA6821(config, m_pia, 0);
m_pia->writepa_handler().set(FUNC(midway_cheap_squeak_deluxe_device::porta_w));
@@ -46,12 +47,12 @@ MACHINE_CONFIG_START(midway_cheap_squeak_deluxe_device::device_add_mconfig)
m_pia->irqa_handler().set(FUNC(midway_cheap_squeak_deluxe_device::irq_w));
m_pia->irqb_handler().set(FUNC(midway_cheap_squeak_deluxe_device::irq_w));
- MCFG_DEVICE_ADD("dac", AD7533, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 1.0)
+ AD7533(config, m_dac, 0).add_route(ALL_OUTPUTS, *this, 1.0);
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
+}
//-------------------------------------------------
// rom_region - device-specific ROM region