瀏覽代碼

Fix cycle timing.

master
Ben Kurtovic 9 年之前
父節點
當前提交
989d4938af
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/z80.c

+ 1
- 1
src/z80.c 查看文件

@@ -163,7 +163,7 @@ bool z80_do_cycles(Z80 *z80, double cycles)
while (cycles > 0 && !z80->except) {
uint8_t opcode = mmu_read_byte(z80->mmu, z80->regfile.pc);
increment_refresh_counter(z80);
cycles -= (*instruction_lookup_table[opcode])(z80, opcode) - 2;
cycles -= (*instruction_lookup_table[opcode])(z80, opcode);
}

z80->pending_cycles = -cycles;


Loading…
取消
儲存