From 47998cb9d4156e4d4c35187d9f543847f6eb447c Mon Sep 17 00:00:00 2001 From: frankmilliron <34376619+frankmilliron@users.noreply.github.com> Date: Fri, 13 Mar 2020 07:24:51 -0700 Subject: [PATCH] Fix video transitions (#129) (especially from from DHGR to HGR) TEXT causes video glitches because it switches text mode in immediately. Updated code waits until text page is clear before showing it. --- src/ui.common.a | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/ui.common.a diff --git a/src/ui.common.a b/src/ui.common.a old mode 100644 new mode 100755 index 7f26c7905..aabf8b1bf --- a/src/ui.common.a +++ b/src/ui.common.a @@ -66,12 +66,22 @@ Home jmp $106 @start ; this will be run from main memory - +READ_ROM_NO_WRITE + lda #$A0 ; clear text screen page 1 + ldx #$77 +- sta $400,x + sta $480,x + sta $500,x + sta $580,x + sta $600,x + sta $680,x + sta $700,x + sta $780,x + dex + bpl - + sta DHIRESOFF ; get out of DHGR mode sta CLR80VID ; get out of DHGR mode ; write-order matters for RGB-card - jsr $FB3C ;ROM_TEXTish ; clear screen but don't show it - jsr ROM_HOME ; HOME lda PAGE1 lda $C051 ; now show it SwitchToBank1