diff --git a/cpu.cpp b/cpu.cpp index bb44140..9a36081 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -996,7 +996,7 @@ bool cpu::single_operand_instructions(const uint16_t instr) setPSW_c(v & 1); if (word_mode) { - uint16_t add = word_mode ? v & 0xff00 : 0; + uint16_t add = v & 0xff00; v = (v & 255) >> 1; v |= hb << 7;