mirror of
https://github.com/actraiser/dust-tutorial-c64-first-intro.git
synced 2025-06-18 17:05:34 -04:00
14 lines
589 B
NASM
14 lines
589 B
NASM
;============================================================
|
|
; write the two line of text to screen center
|
|
;============================================================
|
|
|
|
|
|
init_text lda line1,x ; read characters from line1 table of text...
|
|
sta $0590,x ; ...and store in screen ram near the center
|
|
lda line2,x ; read characters from line1 table of text...
|
|
sta $05e0,x ; ...and put 2 rows below line1
|
|
|
|
inx
|
|
cpx #$28 ; finished when all 40 cols of a line are processed
|
|
bne init_text
|
|
rts |