summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2019-07-20 12:03:01 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2019-07-20 12:03:01 +1000
commit68139508715a0375e657add4197582271ef446ec (patch)
tree690607816a7ee3c6390b4ef91639290063fb95e6
parent5f19e51bc508355d2f14169e70bcb65442a6e22b (diff)
(nw) fixed the build. The compiler complained about the 2nd usage but not the first. *shrug*
-rw-r--r--src/devices/machine/i8155.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/i8155.cpp b/src/devices/machine/i8155.cpp
index 761bcef000d..c8cb11f0216 100644
--- a/src/devices/machine/i8155.cpp
+++ b/src/devices/machine/i8155.cpp
@@ -458,9 +458,9 @@ void i8155_device::write_command(uint8_t data)
LOGMASKED(LOG_PORT, "Port A Interrupt: %s\n", (data & COMMAND_IEA) ? "enabled" : "disabled");
LOGMASKED(LOG_PORT, "Port B Interrupt: %s\n", (data & COMMAND_IEB) ? "enabled" : "disabled");
- if ((data & COMMAND_PA) && (!old_command & COMMAND_PA))
+ if ((data & COMMAND_PA) && (~old_command & COMMAND_PA))
m_out_pa_cb((offs_t)0, m_output[PORT_A]);
- if ((data & COMMAND_PB) && (!old_command & COMMAND_PB))
+ if ((data & COMMAND_PB) && (~old_command & COMMAND_PB))
m_out_pb_cb((offs_t)0, m_output[PORT_B]);
switch (data & COMMAND_PC_MASK)