diff options
Diffstat (limited to 'src/mame/audio/csd.cpp')
-rw-r--r-- | src/mame/audio/csd.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mame/audio/csd.cpp b/src/mame/audio/csd.cpp index 9baf3792fed..416c3143353 100644 --- a/src/mame/audio/csd.cpp +++ b/src/mame/audio/csd.cpp @@ -36,10 +36,9 @@ void midway_cheap_squeak_deluxe_device::csdeluxe_map(address_map &map) // machine configuration //------------------------------------------------- -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); +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) PIA6821(config, m_pia, 0); m_pia->writepa_handler().set(FUNC(midway_cheap_squeak_deluxe_device::porta_w)); @@ -47,11 +46,10 @@ void midway_cheap_squeak_deluxe_device::device_add_mconfig(machine_config &confi 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)); - AD7533(config, m_dac, 0).add_route(ALL_OUTPUTS, *this, 1.0); - voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref")); - vref.add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); - vref.add_route(0, "dac", -1.0, DAC_VREF_NEG_INPUT); -} + MCFG_DEVICE_ADD("dac", AD7533, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, *this, 1.0) + MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) + MCFG_SOUND_ROUTE(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "dac", -1.0, DAC_VREF_NEG_INPUT) +MACHINE_CONFIG_END //------------------------------------------------- // rom_region - device-specific ROM region @@ -118,7 +116,7 @@ void midway_cheap_squeak_deluxe_device::suspend_cpu() // stat_r - return the status value //------------------------------------------------- -u8 midway_cheap_squeak_deluxe_device::stat_r() +READ8_MEMBER( midway_cheap_squeak_deluxe_device::stat_r ) { return m_status; } @@ -127,7 +125,7 @@ u8 midway_cheap_squeak_deluxe_device::stat_r() // sr_w - external 4-bit write to the input latch //------------------------------------------------- -void midway_cheap_squeak_deluxe_device::sr_w(u8 data) +WRITE8_MEMBER( midway_cheap_squeak_deluxe_device::sr_w ) { m_pia->write_portb(data & 0x0f); } |