diff sms.c @ 1759:6e4faa10f9ee

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
author Michael Pavone <pavone@retrodev.com>
date Tue, 19 Feb 2019 22:51:33 -0800
parents d6d4c006a7b3
children 8fe162bdb038 51417bb557b6
line wrap: on
line diff
--- a/sms.c	Sat Feb 16 13:15:09 2019 -0800
+++ b/sms.c	Tue Feb 19 22:51:33 2019 -0800
@@ -72,6 +72,7 @@
 	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