mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
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:
parent
91d887ac7c
commit
d1848fa894
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user