public void poke(int address, int data) {
    if (address < 0xd000 || address >= 0xe000) {
      int[] memory = cpu.getMemory();
      memory[address & 0xffff] = data & 0xff;
    } else {
      cpu.poke(address & 0xffff, data & 0xff);
    }
  }