Compare commits

...

2 Commits

Author SHA1 Message Date
blondie7575 5d21342f5c Missed in last checkin 2024-03-10 13:43:33 -07:00
blondie7575 6247b942e5 Fixed loading screen showing garbage on real hardware 2024-03-10 13:36:28 -07:00
3 changed files with 27 additions and 2 deletions

Binary file not shown.

View File

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

View File

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