diff options
Diffstat (limited to 'src/devices/bus/a2bus/a2pic.cpp')
-rw-r--r-- | src/devices/bus/a2bus/a2pic.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/bus/a2bus/a2pic.cpp b/src/devices/bus/a2bus/a2pic.cpp index 218d3ac6892..21c749eb50c 100644 --- a/src/devices/bus/a2bus/a2pic.cpp +++ b/src/devices/bus/a2bus/a2pic.cpp @@ -71,14 +71,16 @@ ioport_constructor a2bus_pic_device::device_input_ports() const // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(a2bus_pic_device::device_add_mconfig) +void a2bus_pic_device::device_add_mconfig(machine_config &config) +{ CENTRONICS(config, m_ctx, centronics_devices, "printer"); m_ctx->set_data_input_buffer(m_ctx_data_in); m_ctx->ack_handler().set(FUNC(a2bus_pic_device::ack_w)); INPUT_BUFFER(config, m_ctx_data_in); - MCFG_CENTRONICS_OUTPUT_LATCH_ADD("ctx_data_out", PIC_CENTRONICS_TAG) -MACHINE_CONFIG_END + OUTPUT_LATCH(config, m_ctx_data_out); + m_ctx->set_output_latch(*m_ctx_data_out); +} //------------------------------------------------- // rom_region - device-specific ROM region |