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.
This commit is contained in:
frankmilliron 2020-03-13 07:24:51 -07:00 committed by GitHub
parent fc56e68ff2
commit 47998cb9d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
src/ui.common.a Normal file → Executable file
View File

@ -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