diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-04-15 21:45:19 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-04-15 21:45:19 -0700 |
commit | 380a0230aad7a9977fcd0ac0731576a9ed9ce6d5 (patch) | |
tree | ad4936c7f2356285ab6c424edc3f819144657481 | |
parent | 042380eef754a75f337e1f16caf4050ff457c105 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |