summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/z80sio.cpp
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2017-11-18 22:39:45 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2017-11-18 22:39:45 +1100
commit46e2a0669c7ac832a679cd8e6fb94f5b4d706f27 (patch)
tree020d37f1569a6fc8b42aa9be42fa46e1edbcf187 /src/devices/machine/z80sio.cpp
parent1ebdf68d5c1142188eef7375ae4072b341d14e92 (diff)
(nw) Fixed the build.
Diffstat (limited to 'src/devices/machine/z80sio.cpp')
-rw-r--r--src/devices/machine/z80sio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/z80sio.cpp b/src/devices/machine/z80sio.cpp
index 96e6eb59fdc..ddf951161b4 100644
--- a/src/devices/machine/z80sio.cpp
+++ b/src/devices/machine/z80sio.cpp
@@ -1560,7 +1560,7 @@ void z80sio_channel::do_sioreg_wr3(uint8_t data)
else if ((data & WR3_ENTER_HUNT_PHASE) && ((m_wr4 & WR4_STOP_BITS_MASK) == WR4_STOP_BITS_SYNC))
{
// TODO: should this re-initialise hunt logic if already in hunt phase for 8-bit/16-bit/SDLC sync?
- if ((m_wr4 && WR4_SYNC_MODE_MASK) == WR4_SYNC_MODE_EXT)
+ if ((m_wr4 & WR4_SYNC_MODE_MASK) == WR4_SYNC_MODE_EXT)
{
m_rx_bit = 0;
}
@@ -1596,7 +1596,7 @@ void z80sio_channel::do_sioreg_wr5(uint8_t data)
LOG("Z80SIO Channel %c : Request to Send %u\n", 'A' + m_index, (data & WR5_RTS) ? 1 : 0);
LOG("Z80SIO Channel %c : Data Terminal Ready %u\n", 'A' + m_index, (data & WR5_DTR) ? 1 : 0);
- if (!data & WR5_TX_ENABLE)
+ if (~data & WR5_TX_ENABLE)
m_uart->clear_interrupt(m_index, INT_TRANSMIT);
}
@@ -1745,7 +1745,7 @@ void z80sio_channel::receive_enabled()
bool const sync_mode((m_wr4 & WR4_STOP_BITS_MASK) == WR4_STOP_BITS_SYNC);
m_rx_count = sync_mode ? 0 : ((get_clock_mode() - 1) / 2);
m_rx_bit = 0;
- if (sync_mode && ((m_wr4 && WR4_SYNC_MODE_MASK) != WR4_SYNC_MODE_EXT))
+ if (sync_mode && ((m_wr4 & WR4_SYNC_MODE_MASK) != WR4_SYNC_MODE_EXT))
m_rr0 |= RR0_SYNC_HUNT;
}