From 8ac1e753e1af481b2090a4c1b7395853f30b5e8f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 3 Jan 2015 16:08:23 -0800 Subject: 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 --- backend_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend_x86.c') 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) -- cgit v1.2.3