mirror of
https://github.com/blondie7575/GSCats.git
synced 2025-04-11 01:37:12 +00:00
Fixed loading screen showing garbage on real hardware
This commit is contained in:
parent
59a290a288
commit
6247b942e5
@ -9,12 +9,16 @@ loaderPalette:
|
||||
showLoadingScreen:
|
||||
lda #$0000
|
||||
jsr slowColorFill
|
||||
|
||||
SHRVIDEO
|
||||
SHADOWMEMORY
|
||||
|
||||
jsr initSCBs
|
||||
lda #loaderPalette
|
||||
sta PARAML0
|
||||
lda #0
|
||||
jsr setPalette
|
||||
|
||||
BORDER_COLOR #$7
|
||||
lda #$1111
|
||||
jsr slowColorFill
|
||||
@ -55,3 +59,24 @@ slowColorFillLoop:
|
||||
|
||||
slowColorFillLoopDone:
|
||||
rts
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; initSCBs
|
||||
; Initialize all scanline control bytes
|
||||
;
|
||||
; Trashes A,X
|
||||
|
||||
initSCBs:
|
||||
BITS8
|
||||
lda #0
|
||||
ldx #200 ;set all 200 scbs to A
|
||||
|
||||
initSCBsLoop:
|
||||
dex
|
||||
sta $e19d00,x
|
||||
cpx #0
|
||||
bne initSCBsLoop
|
||||
BITS16
|
||||
rts
|
||||
|
||||
|
@ -23,8 +23,8 @@ CAT1_VRAM = $5da0
|
||||
; Shows the title screen and main game menu
|
||||
;
|
||||
titleScreen:
|
||||
lda #%10000000 ; Set all SCBs to 320, no interrupts, palette 0
|
||||
jsr initSCBs
|
||||
jsr setScanLineInterruptVector
|
||||
;jsr setVBLInterruptVector
|
||||
stz leftScreenEdge
|
||||
|
||||
; Copy title screen art from where it was loaded in bank 6
|
||||
|
Loading…
x
Reference in New Issue
Block a user