  this.v = new Array(16).fill(0);
        this.sp = 0xFFF;
        this.screen = new Array(this.SIZE).fill(0);
        this.key = 0;
        this.waitKey = null;
      }

      load(program) {
        for (let i = 0; i < program.length; i++) {
          this.memory[i] = program[i];
        }
      }

      start() {
        this.drawScreen();
        this.thread = setInterval(() => {
          this.cycle();
          if(this.shouldRefresh) {
            this.drawScreen();
            this.shouldRefresh = fa