mirror of
https://github.com/holub/mame
synced 2025-06-04 03:46:29 +03:00
i8255: hopefully improve readback of port C high output latches when port A is in mode 1 (see github #3544) [hap, shattered]
This commit is contained in:
parent
70a47a3998
commit
f173dd62b0
@ -432,6 +432,13 @@ uint8_t i8255_device::read_pc()
|
||||
data |= m_inte[PORT_A] ? 0x10 : 0x00;
|
||||
mask |= 0xc0;
|
||||
}
|
||||
|
||||
if (port_c_upper_mode() == MODE_OUTPUT)
|
||||
{
|
||||
// read data from output latch
|
||||
data |= m_output[PORT_C] & mask;
|
||||
mask = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
case MODE_2:
|
||||
|
Loading…
Reference in New Issue
Block a user