summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2014-01-08 01:34:20 +0000
committer smf- <smf-@users.noreply.github.com>2014-01-08 01:34:20 +0000
commitd1848fa89449025014fe0565b1d22b7d554b0dd7 (patch)
tree4641b733e4601ab2e33d3abcae72a96e6ea29f47 /src
parent91d887ac7c43cab3aef0cf09cffc85af8f1575ce (diff)
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]
Diffstat (limited to 'src')
-rw-r--r--src/emu/machine/z80dart.c4
1 files 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--;