diff --git a/src/mame/sega/model2.cpp b/src/mame/sega/model2.cpp index a433e22c3cc50..8198e258c10c8 100644 --- a/src/mame/sega/model2.cpp +++ b/src/mame/sega/model2.cpp @@ -144,6 +144,7 @@ void model2_state::machine_start() debug_init(); m_lamps.resolve(); + m_driveio_comm_out.resolve(); save_item(NAME(m_intreq)); save_item(NAME(m_intena)); @@ -1577,6 +1578,7 @@ void model2_state::rchase2_drive_board_w(u8 data) void model2_state::drive_board_w(u8 data) { + m_driveio_comm_out = data; m_driveio_comm_data = data; if (m_drivecpu) m_drivecpu->set_input_line(0, HOLD_LINE); diff --git a/src/mame/sega/model2.h b/src/mame/sega/model2.h index bd84f8d2e2367..e8e673254fd3e 100644 --- a/src/mame/sega/model2.h +++ b/src/mame/sega/model2.h @@ -73,7 +73,8 @@ class model2_state : public driver_device m_in0(*this, "IN0"), m_gears(*this, "GEARS"), m_lightgun_ports(*this, {"P1_Y", "P1_X", "P2_Y", "P2_X"}), - m_lamps(*this, "lamp%u", 0U) + m_lamps(*this, "lamp%u", 0U), + m_driveio_comm_out(*this, "driveio_comm") { } /* Public for access by the rendering functions */ @@ -138,6 +139,7 @@ class model2_state : public driver_device optional_ioport m_gears; optional_ioport_array<4> m_lightgun_ports; output_finder<6> m_lamps; + output_finder<> m_driveio_comm_out; u32 m_timervals[4]{}; u32 m_timerorig[4]{};