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 8bc2377518b..babe72507cb 100644 --- a/src/mame/drivers/play_1.cpp +++ b/src/mame/drivers/play_1.cpp @@ -470,7 +470,8 @@ WRITE_LINE_MEMBER( play_1_state::clock_w ) } } -MACHINE_CONFIG_START(play_1_state::play_1) +void play_1_state::play_1(machine_config &config) +{ /* 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); @@ -486,23 +487,22 @@ MACHINE_CONFIG_START(play_1_state::play_1) /* Video */ config.set_default_layout(layout_play_1); - MCFG_DEVICE_ADD("xpoint", CLOCK, 100) // crossing-point detector - MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, play_1_state, clock_w)) + clock_device &xpoint(CLOCK(config, "xpoint", 100)); // crossing-point detector + xpoint.signal_handler().set(FUNC(play_1_state::clock_w)); /* Sound */ genpin_audio(config); SPEAKER(config, "mono").front_center(); - 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 + 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)); +} -MACHINE_CONFIG_START(play_1_state::chance) +void play_1_state::chance(machine_config &config) +{ play_1(config); - MCFG_DEVICE_MODIFY("maincpu") - MCFG_DEVICE_PROGRAM_MAP(chance_map) -MACHINE_CONFIG_END + m_maincpu->set_addrmap(AS_PROGRAM, &play_1_state::chance_map); +} /*------------------------------------------------------------------- / Space Gambler (03/78) |