2018-09-22 08:58:10 +00:00
|
|
|
; Intro reset
|
|
|
|
; ----------------------------------------------------------------------
|
|
|
|
introreset:
|
|
|
|
jsr multicolorOff
|
|
|
|
|
2020-04-08 07:15:25 +00:00
|
|
|
jsr clearScreen
|
2018-09-22 08:58:10 +00:00
|
|
|
|
|
|
|
; Copy shade colors from costant table to color RAM for 2nd and 4th line of text
|
|
|
|
ldx #39
|
|
|
|
introresetColorShade
|
|
|
|
lda colorshade,x
|
|
|
|
sta $d828,x ; 2nd line
|
|
|
|
sta $d878,x ; 4th line
|
|
|
|
dex
|
|
|
|
cpx #$ff
|
|
|
|
bne introresetColorShade
|
|
|
|
|
|
|
|
; Set screen colors
|
|
|
|
lda #0
|
|
|
|
sta $d020 ; overscan
|
|
|
|
sta $d021 ; center
|
|
|
|
|
|
|
|
; Print website
|
|
|
|
lda #<intro2string ; lsb of string address
|
2020-04-08 09:03:03 +00:00
|
|
|
sta srcStringPointer ; put into lsb of source pointer
|
2018-09-22 08:58:10 +00:00
|
|
|
lda #>intro2string ; do the same for msb of string address
|
2020-04-08 09:03:03 +00:00
|
|
|
sta srcStringPointer + 1 ; put into msb of source pointer
|
2018-09-22 08:58:10 +00:00
|
|
|
lda #$26 ; this is lsb of address of 20th line
|
2020-04-08 09:03:03 +00:00
|
|
|
sta dstScreenPointer ; put into lsb of dest pointer
|
2018-09-22 08:58:10 +00:00
|
|
|
lda #$07 ; do the same for msb of adress of 20th line
|
2020-04-08 09:03:03 +00:00
|
|
|
sta dstScreenPointer + 1 ; put into msb of dest pointer
|
|
|
|
jsr printString ; print
|
2018-09-22 08:58:10 +00:00
|
|
|
|
|
|
|
; Print Copyright
|
|
|
|
lda #<intro3string ; the assembly is the same as above,
|
2020-04-08 09:03:03 +00:00
|
|
|
sta srcStringPointer ; just change string to be printed
|
2018-09-22 08:58:10 +00:00
|
|
|
lda #>intro3string ; and line (21th line)
|
2020-04-08 09:03:03 +00:00
|
|
|
sta srcStringPointer + 1
|
2018-09-22 08:58:10 +00:00
|
|
|
lda #$58
|
2020-04-08 09:03:03 +00:00
|
|
|
sta dstScreenPointer
|
2018-09-22 08:58:10 +00:00
|
|
|
lda #$07
|
2020-04-08 09:03:03 +00:00
|
|
|
sta dstScreenPointer + 1
|
|
|
|
jsr printString
|
2018-09-22 08:58:10 +00:00
|
|
|
|
|
|
|
rts
|
|
|
|
|
|
|
|
|