summaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-02-19 22:51:33 -0800
committerMichael Pavone <pavone@retrodev.com>2019-02-19 22:51:33 -0800
commita7792f6ea9784f9a085ecb50861f32082aa53518 (patch)
treee64293a6810c08026697c807843c8e8c3f6e3c98 /sms.c
parent405fd7b0318a6982339ef89ef1c066754adab1ee (diff)
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
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c1
1 files changed, 1 insertions, 0 deletions
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