From: Toni Wilen Date: Thu, 19 Nov 2015 14:44:17 +0000 (+0200) Subject: DDFSTOP special case ddfstop_written_hpos moved. X-Git-Tag: 3210~8 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=f4d6f013663e092ea65ea5d666e24f523109a27c;p=francis%2Fwinuae.git DDFSTOP special case ddfstop_written_hpos moved. --- diff --git a/custom.cpp b/custom.cpp index afa86388..fd9dc961 100644 --- a/custom.cpp +++ b/custom.cpp @@ -5492,8 +5492,9 @@ static void DDFSTOP (int hpos, uae_u16 v) if (plf_state == plf_passed_stop && plf_end_hpos == hpos + DDF_OFFSET) { plf_state = plf_active; plf_end_hpos = 256 + DDF_OFFSET; + // don't let one_fetch_cycle_0() to do this again + ddfstop_written_hpos = hpos; } - ddfstop_written_hpos = hpos; } else if (hpos == ddfstop - DDF_OFFSET) { // if old ddfstop would have matched, emulate it here if (plf_state == plf_active) {