Mercurial > repos > blastem
comparison blastem.c @ 670:f4f3e74b0ce6
Restore Z80 interrupt pulse duration and make a small improvement to debug print output
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 03 Jan 2015 18:49:07 -0800 |
parents | 7a9a7c96cb22 |
children | 8ad39a2b0bce |
comparison
equal
deleted
inserted
replaced
669:7a9a7c96cb22 | 670:f4f3e74b0ce6 |
---|---|
168 | 168 |
169 void z80_next_int_pulse(z80_context * z_context) | 169 void z80_next_int_pulse(z80_context * z_context) |
170 { | 170 { |
171 genesis_context * gen = z_context->system; | 171 genesis_context * gen = z_context->system; |
172 z_context->int_pulse_start = vdp_next_vint_z80(gen->vdp); | 172 z_context->int_pulse_start = vdp_next_vint_z80(gen->vdp); |
173 z_context->int_pulse_end = z_context->int_pulse_start + Z80_VINT_DURATION; | 173 z_context->int_pulse_end = z_context->int_pulse_start + Z80_VINT_DURATION * MCLKS_PER_Z80; |
174 } | 174 } |
175 | 175 |
176 void sync_z80(z80_context * z_context, uint32_t mclks) | 176 void sync_z80(z80_context * z_context, uint32_t mclks) |
177 { | 177 { |
178 #ifndef NO_Z80 | 178 #ifndef NO_Z80 |