It makes more sense to mask out the errors that are going to be brought in from the error mask rather than throw all the other bits away. However I haven't seen any documentation for Z80DART that says there is an error FIFO at all. [smf]

This commit is contained in:
smf- 2014-01-08 01:34:20 +00:00
parent 91d887ac7c
commit d1848fa894

View File

@ -1024,8 +1024,8 @@ UINT8 z80dart_channel::data_read()
// load data from the FIFO
data = m_rx_data_fifo[m_rx_fifo];
// load error status from the FIFO, retain overrun and parity errors
m_rr[1] = (m_rr[1] & (RR1_RX_OVERRUN_ERROR | RR1_PARITY_ERROR)) | m_rx_error_fifo[m_rx_fifo];
// load error status from the FIFO
m_rr[1] = (m_rr[1] & ~(RR1_CRC_FRAMING_ERROR | RR1_RX_OVERRUN_ERROR | RR1_PARITY_ERROR)) | m_rx_error_fifo[m_rx_fifo];
// decrease FIFO pointer
m_rx_fifo--;