dust-tutorial-c64-first-intro/code/init_static_text.asm
2013-04-03 11:50:28 +02:00

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