diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-02-19 22:51:33 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-02-19 22:51:33 -0800 |
commit | a7792f6ea9784f9a085ecb50861f32082aa53518 (patch) | |
tree | e64293a6810c08026697c807843c8e8c3f6e3c98 /sms.c | |
parent | 405fd7b0318a6982339ef89ef1c066754adab1ee (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |