Exemple #1
0
  /* (non-Javadoc)
   * @see v9t9.common.demo.IDemoActor#executeEvent(v9t9.common.demo.IDemoPlayer, v9t9.common.demo.IDemoEvent)
   */
  @Override
  public void executeEvent(IDemoPlayer player, IDemoEvent event) throws IOException {
    // contribute time, so sound, etc. will proceed
    IMachine machine = player.getMachine();
    ICpu cpu = machine.getCpu();

    cpu.tick();
    int cycles = (int) (cpu.getBaseCyclesPerSec() / player.getInputStream().getTimerRate());

    IVdpChip vdp = machine.getVdp();
    vdp.addCpuCycles(cycles);
    vdp.tick();
    vdp.syncVdpInterrupt(machine);
  }
Exemple #2
0
  /** @param machine */
  public Vdp9918AMmio(ISettingsHandler settings, IMemory memory, IVdpChip vdp, int memorySize) {
    super(new VdpRamArea(memorySize));
    this.settings = settings;

    dumpFullInstructions = settings.get(ICpu.settingDumpFullInstructions);
    dumpVdpAccess = settings.get(IVdpChip.settingDumpVdpAccess);

    this.videoMemory = vdp.getVideoMemory();
    videoMemory.setSize(memorySize);

    initMemory(memory, memorySize);
    ((VdpTMS9918A) vdp).setVdpMmio(this);
    setVdpHandler(vdp);
  }