Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/mame/sega/model2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion src/mame/sega/model2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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]{};
Expand Down
Loading