From d1848fa89449025014fe0565b1d22b7d554b0dd7 Mon Sep 17 00:00:00 2001 From: smf- Date: Wed, 8 Jan 2014 01:34:20 +0000 Subject: [PATCH] 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] --- src/emu/machine/z80dart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/machine/z80dart.c b/src/emu/machine/z80dart.c index 2535b91a20b..f6b30cba806 100644 --- a/src/emu/machine/z80dart.c +++ b/src/emu/machine/z80dart.c @@ -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--;