core, fix no ym2612 timers if z80 in reset
authorkub <derkub@gmail.com>
Thu, 30 Nov 2023 23:59:43 +0000 (00:59 +0100)
committerkub <derkub@gmail.com>
Fri, 1 Dec 2023 00:09:25 +0000 (01:09 +0100)
pico/pico_cmn.c

index 3e5a038..5a73544 100644 (file)
@@ -334,7 +334,7 @@ static int PicoFrameHints(void)
   // get samples from sound chips
   PsndGetSamples(y);
 
-  timers_cycle(Pico.t.z80c_aim);
+  timers_cycle(cycles_68k_to_z80(Pico.t.m68c_aim - Pico.t.m68c_frame_start));
 
   pv->hint_cnt = hint;