diff 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
line wrap: on
line diff
--- a/genesis.c	Sat Oct 14 05:03:38 2017 -0700
+++ b/genesis.c	Thu Oct 19 03:21:24 2017 -0700
@@ -242,6 +242,7 @@
 	genesis_context * gen = z_context->system;
 	z_context->int_pulse_start = vdp_next_vint_z80(gen->vdp);
 	z_context->int_pulse_end = z_context->int_pulse_start + Z80_INT_PULSE_MCLKS;
+	z_context->im2_vector = 0xFF;
 }
 
 static void sync_z80(z80_context * z_context, uint32_t mclks)