diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2019-01-29 18:03:29 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2019-01-29 18:03:29 +0100 |
commit | ca1b0f3d41f6dc0853c724d19d18a661c750449b (patch) | |
tree | c9ffc5280b49c3db42d44e60a795c1df1f6d9e4a /src/mame/drivers/einstein.cpp | |
parent | 08bb5cacb09cccff9cb4093326912370ba6739b3 (diff) |
output_latch: removed MCFG macros (nw)
Diffstat (limited to 'src/mame/drivers/einstein.cpp')
-rw-r--r-- | src/mame/drivers/einstein.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/einstein.cpp b/src/mame/drivers/einstein.cpp index 894db5c483f..2ed96fa6f01 100644 --- a/src/mame/drivers/einstein.cpp +++ b/src/mame/drivers/einstein.cpp @@ -633,13 +633,14 @@ MACHINE_CONFIG_START(einstein_state::einstein) adc.ch4_callback().set_ioport("analogue_2_y"); /* printer */ - MCFG_DEVICE_ADD(m_centronics, CENTRONICS, centronics_devices, "printer") - MCFG_CENTRONICS_ACK_HANDLER(WRITELINE(IC_I063, z80pio_device, strobe_a)) - MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(*this, einstein_state, write_centronics_busy)) - MCFG_CENTRONICS_PERROR_HANDLER(WRITELINE(*this, einstein_state, write_centronics_perror)) - MCFG_CENTRONICS_FAULT_HANDLER(WRITELINE(*this, einstein_state, write_centronics_fault)) - - MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics") + CENTRONICS(config, m_centronics, centronics_devices, "printer"); + m_centronics->ack_handler().set(IC_I063, FUNC(z80pio_device::strobe_a)); + m_centronics->busy_handler().set(FUNC(einstein_state::write_centronics_busy)); + m_centronics->perror_handler().set(FUNC(einstein_state::write_centronics_perror)); + m_centronics->fault_handler().set(FUNC(einstein_state::write_centronics_fault)); + + output_latch_device ¢_data_out(OUTPUT_LATCH(config, "cent_data_out")); + m_centronics->set_output_latch(cent_data_out); TIMER(config, m_strobe_timer).configure_generic(FUNC(einstein_state::strobe_callback)); |