mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
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:
parent
fc56e68ff2
commit
47998cb9d4
16
src/ui.common.a
Normal file → Executable file
16
src/ui.common.a
Normal file → Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user