Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1757:bb4d19c7c047 | 1759:6e4faa10f9ee |
---|---|
70 { | 70 { |
71 uint32_t vint = vdp_next_vint(sms->vdp); | 71 uint32_t vint = vdp_next_vint(sms->vdp); |
72 uint32_t hint = vdp_next_hint(sms->vdp); | 72 uint32_t hint = vdp_next_hint(sms->vdp); |
73 #ifdef NEW_CORE | 73 #ifdef NEW_CORE |
74 sms->z80->int_cycle = vint < hint ? vint : hint; | 74 sms->z80->int_cycle = vint < hint ? vint : hint; |
75 z80_sync_cycle(sms->z80, sms->z80->sync_cycle); | |
75 #else | 76 #else |
76 sms->z80->int_pulse_start = vint < hint ? vint : hint; | 77 sms->z80->int_pulse_start = vint < hint ? vint : hint; |
77 #endif | 78 #endif |
78 } | 79 } |
79 | 80 |