Replaces the contents of accumulator A or B with its logical complement.
        source code forms: COMA; COMB

def instruction_COM_register(self, opcode, register):
        """
        Replaces the contents of accumulator A or B with its logical complement.
        source code forms: COMA; COMB
        """
        register.set(self.COM(value=register.value))