From a7792f6ea9784f9a085ecb50861f32082aa53518 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 19 Feb 2019 22:51:33 -0800 Subject: Store sync_cycle in context rather than in a local in CPU DSL. Fix the timing of a number of instructions in new Z80 core --- sms.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sms.c') diff --git a/sms.c b/sms.c index 7ceb7a4..1f9b888 100644 --- a/sms.c +++ b/sms.c @@ -72,6 +72,7 @@ static void update_interrupts(sms_context *sms) uint32_t hint = vdp_next_hint(sms->vdp); #ifdef NEW_CORE sms->z80->int_cycle = vint < hint ? vint : hint; + z80_sync_cycle(sms->z80, sms->z80->sync_cycle); #else sms->z80->int_pulse_start = vint < hint ? vint : hint; #endif -- cgit v1.2.3