Skip to content

Commit a878d8c

Browse files
author
David Haywood
committed
probably need to do it like this
1 parent 2e6ec79 commit a878d8c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/mame/tvgames/xavix2002_io.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ void xavix2002_io_device::pio_dir_w(offs_t offset, uint8_t data)
4444
if (offset < 3)
4545
{
4646
m_sx_pio_dir[offset] = data;
47-
pio_out_w(offset, m_sx_pio_out[offset]);
48-
// update port?
47+
48+
// update output port after direction change?
49+
switch (offset)
50+
{
51+
case 0: m_out0_cb(0, m_sx_pio_out[offset], m_sx_pio_dir[offset]); break;
52+
case 1: m_out1_cb(0, m_sx_pio_out[offset], m_sx_pio_dir[offset]); break;
53+
case 2: m_out2_cb(0, m_sx_pio_out[offset], m_sx_pio_dir[offset]); break;
54+
default: break;
55+
}
4956
}
5057
}
5158

0 commit comments

Comments
 (0)