Mercurial > repos > blastem
changeset 1288:94f32d534bed
Minor fix to hacky refresh emulation code to more closely match my intent
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 19 Mar 2017 11:14:34 -0700 |
parents | 65f03a0a426a |
children | 6ad59a62e656 |
files | genesis.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/genesis.c Sun Mar 19 00:34:15 2017 -0700 +++ b/genesis.c Sun Mar 19 11:14:34 2017 -0700 @@ -323,7 +323,9 @@ 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;