diff genesis.c @ 1316:3185438e0134

Fix copy pasta error in handling of Z80 VDP port reads. HV counter reads are not illegal writes =P. Fixes immediate exit in Overdrive II, though other problems remain
author Michael Pavone <pavone@retrodev.com>
date Sat, 15 Apr 2017 21:45:19 -0700
parents 46f5ca0a9e76
children bfdd450e7dea
line wrap: on
line diff
--- a/genesis.c	Wed Apr 05 09:48:49 2017 -0700
+++ b/genesis.c	Sat Apr 15 21:45:19 2017 -0700
@@ -453,7 +453,7 @@
 		} else if (vdp_port < 8) {
 			ret = vdp_control_port_read(gen->vdp);
 		} else {
-			fatal_error("Illegal write to HV Counter port %X\n", vdp_port);
+			ret = vdp_hv_counter_read(gen->vdp);
 		}
 	} else {
 		//TODO: Figure out the correct value today