code: def command_cycles_per_sec(self, event=None):
          
          try:
              cycles_per_sec = self.cycles_per_sec_var.get()
          except ValueError:
              self.cycles_per_sec_var.set(self.runtime_cfg.cycles_per_sec)
              return
  
          self.cycles_per_sec_label_var.set(
              "cycles/sec / 1000000 = %f MHz CPU frequency * 16 = %f Mhz crystal" % (
                  cycles_per_sec / 1000000,
                  cycles_per_sec / 1000000 * 16,
              )
          )
  
          self.runtime_cfg.cycles_per_sec = cycles_per_sec
docs: TODO: refactor: move code to CPU!