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:
Vas Crabb 2018-05-10 17:38:39 +10:00
parent 70a47a3998
commit f173dd62b0

View File

@ -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: