diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-01-03 16:08:23 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-01-03 16:08:23 -0800 |
commit | 8ac1e753e1af481b2090a4c1b7395853f30b5e8f (patch) | |
tree | d339264039eb87b68c8630cdb605991ee119f7e7 /backend_x86.c | |
parent | 172a8961d9ebb577668dcb150c56b3f2c6da0419 (diff) |
All cycle counters are now based off the master clock. This seems to have messed up Z80 interrupt timing (music in Sonic 2 is too slow for instance), but things are generally working
Diffstat (limited to 'backend_x86.c')
-rw-r--r-- | backend_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend_x86.c b/backend_x86.c index 925751c..7c289de 100644 --- a/backend_x86.c +++ b/backend_x86.c @@ -3,7 +3,7 @@ void cycles(cpu_options *opts, uint32_t num) { - add_ir(&opts->code, num, opts->cycles, SZ_D); + add_ir(&opts->code, num*opts->clock_divider, opts->cycles, SZ_D); } void check_cycles_int(cpu_options *opts, uint32_t address) |