code: def instruction_COM_memory(self, opcode, ea, m):
          
          r = self.COM(value=m)
  #        log.debug("$%x COM memory $%x to $%x" % (
  #            self.program_counter, m, r,
  #        ))
          return ea, r & 0xff
docs: Replaces the contents of memory location M with its logical complement.
          source code forms: COM Q