diff options
author | 2022-08-03 10:02:15 -0700 | |
---|---|---|
committer | 2022-08-03 10:02:15 -0700 | |
commit | d022c39acb4d9fd0e4417b7428351b902160605b (patch) | |
tree | 75f969d3055396b0800011e3a7340189c0996818 | |
parent | 29ce8c16b826d19b23dcb96bdc106fb26dc7f2b8 (diff) |
z180asci: fix logic errors (nw)
-rw-r--r-- | src/devices/cpu/z180/z180asci.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/z180/z180asci.cpp b/src/devices/cpu/z180/z180asci.cpp index 69c225accaa..3abf9683bc8 100644 --- a/src/devices/cpu/z180/z180asci.cpp +++ b/src/devices/cpu/z180/z180asci.cpp @@ -346,12 +346,12 @@ DECLARE_WRITE_LINE_MEMBER( z180asci_channel_base::cts_wr ) if (m_id) { // For channel 1, CTS can be disabled - if ((m_asci_stat && Z180_STAT1_CTS1E) == 0) return; + if ((m_asci_stat & Z180_STAT1_CTS1E) == 0) return; } else { // For channel 0, high resets TDRE - if (m_ext && state && (m_asci_ext && Z180_ASEXT_CTS0) == 0) + if (m_ext && state && (m_asci_ext & Z180_ASEXT_CTS0) == 0) m_asci_stat |= Z180_STAT_TDRE; } m_cts = state; @@ -363,7 +363,7 @@ DECLARE_WRITE_LINE_MEMBER( z180asci_channel_base::dcd_wr ) return; // In extended mode, DCD autoenables RX if configured - if (m_ext && (m_asci_ext && Z180_ASEXT_DCD0) == 0) + if (m_ext && (m_asci_ext & Z180_ASEXT_DCD0) == 0) { m_rx_enabled = state ? false : true; if (state) @@ -383,7 +383,7 @@ DECLARE_WRITE_LINE_MEMBER( z180asci_channel_base::rxa_wr ) DECLARE_WRITE_LINE_MEMBER( z180asci_channel_base::cka_wr ) { // For channel 1, CKA can be disabled - if (m_id && (m_asci_cntla && Z180_CNTLA1_CKA1D)) return; + if (m_id && (m_asci_cntla & Z180_CNTLA1_CKA1D)) return; if(state != m_clock_state) { |