summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/play_3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/play_3.cpp')
-rw-r--r--src/mame/drivers/play_3.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/play_3.cpp b/src/mame/drivers/play_3.cpp
index aaf00424e82..5c56395a9f2 100644
--- a/src/mame/drivers/play_3.cpp
+++ b/src/mame/drivers/play_3.cpp
@@ -480,7 +480,7 @@ MACHINE_CONFIG_START(play_3_state::play_3)
MCFG_DEVICE_ADD("maincpu", CDP1802, XTAL(3'579'545))
MCFG_DEVICE_PROGRAM_MAP(play_3_map)
MCFG_DEVICE_IO_MAP(play_3_io)
- MCFG_COSMAC_WAIT_CALLBACK(VCC)
+ MCFG_COSMAC_WAIT_CALLBACK(CONSTANT(1))
MCFG_COSMAC_CLEAR_CALLBACK(READLINE(*this, play_3_state, clear_r))
MCFG_COSMAC_EF1_CALLBACK(READLINE(*this, play_3_state, ef1_r))
MCFG_COSMAC_EF4_CALLBACK(READLINE(*this, play_3_state, ef4_r))
@@ -499,13 +499,13 @@ MACHINE_CONFIG_START(play_3_state::play_3)
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, play_3_state, clock2_w))
// This is actually a 4013 chip (has 2 RS flipflops)
- MCFG_DEVICE_ADD("4013a", TTL7474, 0)
- MCFG_7474_OUTPUT_CB(WRITELINE(*this, play_3_state, q4013a_w))
- MCFG_7474_COMP_OUTPUT_CB(WRITELINE("4013a", ttl7474_device, d_w))
+ TTL7474(config, m_4013a, 0);
+ m_4013a->output_cb().set(FUNC(play_3_state::q4013a_w));
+ m_4013a->comp_output_cb().set(m_4013a, FUNC(ttl7474_device::d_w));
- MCFG_DEVICE_ADD("4013b", TTL7474, 0)
- MCFG_7474_OUTPUT_CB(WRITELINE("maincpu", cosmac_device, ef2_w)) MCFG_DEVCB_INVERT // inverted
- MCFG_7474_COMP_OUTPUT_CB(WRITELINE("maincpu", cosmac_device, int_w)) MCFG_DEVCB_INVERT // inverted
+ TTL7474(config, m_4013b, 0);
+ m_4013b->output_cb().set(m_maincpu, FUNC(cosmac_device::ef2_w)).invert(); // inverted
+ m_4013b->comp_output_cb().set(m_maincpu, FUNC(cosmac_device::int_w)).invert(); // inverted
/* Sound */
genpin_audio(config);
@@ -513,7 +513,7 @@ MACHINE_CONFIG_START(play_3_state::play_3)
MCFG_DEVICE_ADD("audiocpu", CDP1802, XTAL(3'579'545))
MCFG_DEVICE_PROGRAM_MAP(play_3_audio_map)
MCFG_DEVICE_IO_MAP(play_3_audio_io)
- MCFG_COSMAC_WAIT_CALLBACK(VCC)
+ MCFG_COSMAC_WAIT_CALLBACK(CONSTANT(1))
MCFG_COSMAC_CLEAR_CALLBACK(READLINE(*this, play_3_state, clear_a_r))
SPEAKER(config, "lspeaker").front_left();