summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-04-15 21:45:19 -0700
committerMichael Pavone <pavone@retrodev.com>2017-04-15 21:45:19 -0700
commit380a0230aad7a9977fcd0ac0731576a9ed9ce6d5 (patch)
treead4936c7f2356285ab6c424edc3f819144657481
parent042380eef754a75f337e1f16caf4050ff457c105 (diff)
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
-rw-r--r--genesis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/genesis.c b/genesis.c
index 1ce608c..b17110e 100644
--- a/genesis.c
+++ b/genesis.c
@@ -453,7 +453,7 @@ static uint8_t z80_vdp_port_read(uint32_t vdp_port, void * vcontext)
} 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