diff options
Diffstat (limited to 'src/mame/drivers/play_1.cpp')
-rw-r--r-- | src/mame/drivers/play_1.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/play_1.cpp b/src/mame/drivers/play_1.cpp index babe72507cb..8bc2377518b 100644 --- a/src/mame/drivers/play_1.cpp +++ b/src/mame/drivers/play_1.cpp @@ -470,8 +470,7 @@ WRITE_LINE_MEMBER( play_1_state::clock_w ) } } -void play_1_state::play_1(machine_config &config) -{ +MACHINE_CONFIG_START(play_1_state::play_1) /* basic machine hardware */ CDP1802(config, m_maincpu, 400000); // 2 gates, 1 cap, 1 resistor oscillating somewhere between 350 to 450 kHz m_maincpu->set_addrmap(AS_PROGRAM, &play_1_state::play_1_map); @@ -487,22 +486,23 @@ void play_1_state::play_1(machine_config &config) /* Video */ config.set_default_layout(layout_play_1); - clock_device &xpoint(CLOCK(config, "xpoint", 100)); // crossing-point detector - xpoint.signal_handler().set(FUNC(play_1_state::clock_w)); + MCFG_DEVICE_ADD("xpoint", CLOCK, 100) // crossing-point detector + MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, play_1_state, clock_w)) /* Sound */ genpin_audio(config); SPEAKER(config, "mono").front_center(); - SPEAKER_SOUND(config, "speaker").add_route(ALL_OUTPUTS, "mono", 0.50); - CLOCK(config, m_monotone, 0); // sound device - m_monotone->signal_handler().set("speaker", FUNC(speaker_sound_device::level_w)); -} + MCFG_DEVICE_ADD("speaker", SPEAKER_SOUND) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) + MCFG_DEVICE_ADD("monotone", CLOCK, 0) // sound device + MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE("speaker", speaker_sound_device, level_w)) +MACHINE_CONFIG_END -void play_1_state::chance(machine_config &config) -{ +MACHINE_CONFIG_START(play_1_state::chance) play_1(config); - m_maincpu->set_addrmap(AS_PROGRAM, &play_1_state::chance_map); -} + MCFG_DEVICE_MODIFY("maincpu") + MCFG_DEVICE_PROGRAM_MAP(chance_map) +MACHINE_CONFIG_END /*------------------------------------------------------------------- / Space Gambler (03/78) |