summaryrefslogtreecommitdiff
path: root/backend_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-01-03 16:08:23 -0800
committerMichael Pavone <pavone@retrodev.com>2015-01-03 16:08:23 -0800
commit8ac1e753e1af481b2090a4c1b7395853f30b5e8f (patch)
treed339264039eb87b68c8630cdb605991ee119f7e7 /backend_x86.c
parent172a8961d9ebb577668dcb150c56b3f2c6da0419 (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.c2
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)