--- generator/main/cpuz80-mz80.c 2020/03/04 04:47:06 1.1.1.3 +++ generator/main/cpuz80-mz80.c 2020/03/04 04:47:22 1.1.1.4 @@ -163,14 +163,14 @@ void cpuz80_sync(void) { int cpu68k_wanted = cpu68k_clocks - cpuz80_lastsync; int wanted = (cpu68k_wanted < 0 ? 0 : cpu68k_wanted) * 7 / 15; - int acheived; + int achieved; if (cpuz80_on && cpuz80_active && !cpuz80_resetting) { /* ui_log(LOG_USER, "executing %d z80 clocks @ %X", wanted, cpuz80_z80.z80pc); */ mz80exec(wanted); - acheived = mz80GetElapsedTicks(1); - cpuz80_lastsync = cpuz80_lastsync + acheived * 15 / 7; + achieved = mz80GetElapsedTicks(1); + cpuz80_lastsync = cpuz80_lastsync + achieved * 15 / 7; } else { cpuz80_lastsync = cpu68k_clocks; }