z80dart: quick fix to get CP/M (CPC) to detect the presence of the serial interface. (no whatsnew)

This commit is contained in:
mahlemiut 2014-04-25 04:03:57 +00:00
parent 1f79e2bdda
commit 544a914f7b

View File

@ -926,8 +926,12 @@ void z80dart_channel::control_write(UINT8 data)
case 2:
// interrupt vector
if (m_index == z80dart_device::CHANNEL_B)
m_rr[2] = ( m_rr[2] & 0x0e ) | ( m_wr[2] & 0xF1);;
{
if(m_wr[1] & z80dart_channel::WR1_STATUS_VECTOR)
m_rr[2] = ( m_rr[2] & 0x0e ) | ( m_wr[2] & 0xF1);
else
m_rr[2] = m_wr[2];
}
m_uart->check_interrupts();
LOG(("Z80DART \"%s\" Channel %c : Interrupt Vector %02x\n", m_owner->tag(), 'A' + m_index, data));
break;