A86: Displaying text


[Prev][Next][Index][Thread]

A86: Displaying text




What would be the best way to go about displaying multiple lines of text.
Something like: 
ld b,Text ;number of lines to display
show:
    inc hl ;now points to line of text
    call _puts ;shows text on screen
    call _newline
    djnz show ;if all lines have been disp go back
    ret
Text:
    .db 3,"Welcome to TI","This is just a test line","So is this one",0 ; 3 
is the # of lines to be displayed

Doing it that way just seems to run the 3 lines together.  If I put a 
terminator (0) at the end of everyline to be displayed would that increase 
the size of the program?
Thanks for your help.
--Joe