diff --git a/src/mame/drivers/changela.cpp b/src/mame/drivers/changela.cpp index cb8e2ec6848..ec4f5e5d038 100644 --- a/src/mame/drivers/changela.cpp +++ b/src/mame/drivers/changela.cpp @@ -49,7 +49,7 @@ void changela_state::changela_68705_port_a_w(uint8_t data) void changela_state::changela_68705_port_c_w(uint8_t data) { /* PC3 is connected to the CLOCK input of the LS374, so we latch the data on rising edge */ - if (BIT(data, 3) && ~BIT(m_port_c_out, 3)) + if (BIT(data, 3) && !BIT(m_port_c_out, 3)) m_mcu_out = m_port_a_out & (BIT(m_port_c_out, 2) ? 0xff : m_mcu_in); /* PC2 is connected to the /OE input of the LS374 */