snake6502/src/introreset.asm

40 lines
605 B
NASM
Raw Normal View History

2020-09-15 12:57:10 +00:00
#if VERBOSE = 1
LASTINIT SET .
#endif
; Intro reset
; ----------------------------------------------------------------------
2021-04-13 21:19:47 +00:00
introreset SUBROUTINE
jsr multicolorOff
2020-04-08 07:15:25 +00:00
jsr clearScreen
; Set screen colors
lda #0
sta $d020 ; overscan
sta $d021 ; center
2021-04-13 21:19:47 +00:00
lda #14
sta introYscroll
ldx #$78
stx dstPointer
ldy #$04
sty dstPointer + 1
lda #68+19
sta rasterLineInt
#if DEBUG = 1
ldy #$00
.charsetLoop:
tya
sta $4c8,y
iny
bne .charsetLoop
#endif
2020-09-15 12:57:10 +00:00
#if VERBOSE = 1
ECHO "introreset.asm @ ",LASTINIT,"len:",(. - LASTINIT)
2021-04-13 21:19:47 +00:00
#endif