Skip to content

Commit

Permalink
probably need to do it like this
Browse files Browse the repository at this point in the history
  • Loading branch information
David Haywood committed Dec 26, 2024
1 parent 2e6ec79 commit a878d8c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/mame/tvgames/xavix2002_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@ void xavix2002_io_device::pio_dir_w(offs_t offset, uint8_t data)
if (offset < 3)
{
m_sx_pio_dir[offset] = data;
pio_out_w(offset, m_sx_pio_out[offset]);
// update port?

// update output port after direction change?
switch (offset)
{
case 0: m_out0_cb(0, m_sx_pio_out[offset], m_sx_pio_dir[offset]); break;
case 1: m_out1_cb(0, m_sx_pio_out[offset], m_sx_pio_dir[offset]); break;
case 2: m_out2_cb(0, m_sx_pio_out[offset], m_sx_pio_dir[offset]); break;
default: break;
}
}
}

Expand Down

0 comments on commit a878d8c

Please sign in to comment.