diff options
Diffstat (limited to 'src/mame/machine/dec_lk201.cpp')
-rw-r--r-- | src/mame/machine/dec_lk201.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/machine/dec_lk201.cpp b/src/mame/machine/dec_lk201.cpp index 84740e07cee..4c4f5dbd4f9 100644 --- a/src/mame/machine/dec_lk201.cpp +++ b/src/mame/machine/dec_lk201.cpp @@ -211,14 +211,15 @@ void lk201_device::lk201_map(address_map &map) // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(lk201_device::device_add_mconfig) - MCFG_DEVICE_ADD(LK201_CPU_TAG, M68HC05EG, XTAL(4'000'000)) // actually 68HC05C4, clock verified by Lord_Nightmare - MCFG_DEVICE_PROGRAM_MAP(lk201_map) +void lk201_device::device_add_mconfig(machine_config &config) +{ + M68HC05EG(config, m_maincpu, XTAL(4'000'000)); // actually 68HC05C4, clock verified by Lord_Nightmare + m_maincpu->set_addrmap(AS_PROGRAM, &lk201_device::lk201_map); SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD(LK201_SPK_TAG, BEEP, 2000) // clocked by a 555 timer at E8, the volume of the beep is controllable by: (8051 model) P2.0 thru P2.3, or (6805 model) the upper 4 bits of the LED data latch - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) -MACHINE_CONFIG_END + BEEP(config, m_speaker, 2000); // clocked by a 555 timer at E8, the volume of the beep is controllable by: (8051 model) P2.0 thru P2.3, or (6805 model) the upper 4 bits of the LED data latch + m_speaker->add_route(ALL_OUTPUTS, "mono", 0.50); +} const tiny_rom_entry *lk201_device::device_rom_region() const { |