# HG changeset patch # User Michael Pavone # Date 1492317919 25200 # Node ID 3185438e0134e8b70545afa0d0f3921c8a4175fa # Parent 810ae0287d665e8111f6d7a682453b197aab0c87 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 diff -r 810ae0287d66 -r 3185438e0134 genesis.c --- 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