mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
i8255: in read_pc(), also return data from output latch
This commit is contained in:
parent
1765c5d9b4
commit
9143577774
@ -473,6 +473,11 @@ uint8_t i8255_device::read_pc()
|
||||
{
|
||||
// read data from port
|
||||
data |= m_in_pc_cb(0) & mask;
|
||||
if (port_c_upper_mode() == MODE_OUTPUT)
|
||||
{
|
||||
// read data from output latch
|
||||
data |= m_output[PORT_C] & mask;
|
||||
}
|
||||
}
|
||||
|
||||
return data;
|
||||
|
Loading…
Reference in New Issue
Block a user