diff options
Diffstat (limited to 'src/mame/drivers/play_2.cpp')
-rw-r--r-- | src/mame/drivers/play_2.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/play_2.cpp b/src/mame/drivers/play_2.cpp index 6d4ac1a001f..12865da25cd 100644 --- a/src/mame/drivers/play_2.cpp +++ b/src/mame/drivers/play_2.cpp @@ -370,7 +370,7 @@ MACHINE_CONFIG_START(play_2_state::play_2) MCFG_DEVICE_ADD("maincpu", CDP1802, XTAL(2'950'000)) MCFG_DEVICE_PROGRAM_MAP(play_2_map) MCFG_DEVICE_IO_MAP(play_2_io) - MCFG_COSMAC_WAIT_CALLBACK(VCC) + MCFG_COSMAC_WAIT_CALLBACK(CONSTANT(1)) MCFG_COSMAC_CLEAR_CALLBACK(READLINE(*this, play_2_state, clear_r)) MCFG_COSMAC_EF1_CALLBACK(READLINE(*this, play_2_state, ef1_r)) MCFG_COSMAC_EF4_CALLBACK(READLINE(*this, play_2_state, ef4_r)) @@ -388,13 +388,13 @@ MACHINE_CONFIG_START(play_2_state::play_2) MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, play_2_state, clock2_w)) // This is actually a 4013 chip (has 2 RS flipflops) - MCFG_DEVICE_ADD("4013a", TTL7474, 0) - MCFG_7474_COMP_OUTPUT_CB(WRITELINE("4013a", ttl7474_device, d_w)) - MCFG_7474_OUTPUT_CB(WRITELINE(*this, play_2_state, q4013a_w)) + TTL7474(config, m_4013a, 0); + m_4013a->comp_output_cb().set(m_4013a, FUNC(ttl7474_device::d_w)); + m_4013a->output_cb().set(FUNC(play_2_state::q4013a_w)); - MCFG_DEVICE_ADD("4013b", TTL7474, 0) - MCFG_7474_OUTPUT_CB(WRITELINE("maincpu", cosmac_device, ef2_w)) - MCFG_7474_COMP_OUTPUT_CB(WRITELINE("maincpu", cosmac_device, int_w)) MCFG_DEVCB_INVERT // int is reversed in mame + TTL7474(config, m_4013b, 0); + m_4013b->output_cb().set(m_maincpu, FUNC(cosmac_device::ef2_w)); + m_4013b->comp_output_cb().set(m_maincpu, FUNC(cosmac_device::int_w)).invert(); // int is reversed in mame /* Sound */ genpin_audio(config); |