diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-03-19 11:14:34 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-03-19 11:14:34 -0700 |
commit | 28bc8d926537f578e09b690d8aef76d327632394 (patch) | |
tree | 01dad6eaea8897c869aaef3d627c841a2b211bb2 | |
parent | fd02b79c626327abdc999a39a5c78560ebc5d2f1 (diff) |
Minor fix to hacky refresh emulation code to more closely match my intent
-rw-r--r-- | genesis.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -323,7 +323,9 @@ static m68k_context * vdp_port_write(uint32_t vdp_port, m68k_context * context, context->current_cycle += m68k_cycle_diff; #ifdef REFRESH_EMULATION last_sync_cycle = context->current_cycle; - refresh_counter = 0; + if (vdp_port >= 4 && vdp_port < 8) { + refresh_counter = 0; + } #endif //Lock the Z80 out of the bus until the VDP access is complete gen->bus_busy = 1; |