  clearScreen() {
        this.screen.fill(0);
      }

      drawScreen() {
        let buffer = "";
        for (let i = 0; i < this.WIDTH*this.HEIGHT; i++) {
          if(i>0 && i%this.WIDTH==0) {
            buffer += "\n";
          }
          buffer += this.screen[i] ? String.fromCharCode(this.screen[i]) : ' ';
        }
        this.output.innerHTML = buffer;
      }
    }

    const element = document.querySelector('.emulator pre');
    const emulator = new Emulator(element);

    const button = do