comparison genesis.c @ 1471:2e6320d261ff

Implemented Z80 IM 2 and attempted correct intack cycle delay
author Michael Pavone <pavone@retrodev.com>
date Thu, 19 Oct 2017 03:21:24 -0700
parents f284ad74afe1
children da1dce39e846 ded16f3d7eb4 1f745318f10a
comparison
equal deleted inserted replaced
1470:1e3e0205640f 1471:2e6320d261ff
240 static void z80_next_int_pulse(z80_context * z_context) 240 static void z80_next_int_pulse(z80_context * z_context)
241 { 241 {
242 genesis_context * gen = z_context->system; 242 genesis_context * gen = z_context->system;
243 z_context->int_pulse_start = vdp_next_vint_z80(gen->vdp); 243 z_context->int_pulse_start = vdp_next_vint_z80(gen->vdp);
244 z_context->int_pulse_end = z_context->int_pulse_start + Z80_INT_PULSE_MCLKS; 244 z_context->int_pulse_end = z_context->int_pulse_start + Z80_INT_PULSE_MCLKS;
245 z_context->im2_vector = 0xFF;
245 } 246 }
246 247
247 static void sync_z80(z80_context * z_context, uint32_t mclks) 248 static void sync_z80(z80_context * z_context, uint32_t mclks)
248 { 249 {
249 #ifndef NO_Z80 250 #ifndef NO_Z80