A85: Strings


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

A85: Strings



This is just a suggestion to any beginners and anyone else actually.  If
you make a program, say, "Hello World", and this is the description,
instead of having another such string at the end, why don't you just do
this?

.org 0

Description:
.db "Hello World!", 0

ld  hl, $0101
ld  ($803C), hl         ;Set cursor
ld  hl, (PROGRAM_ADDR)
ld  de, Description
add hl, de
ROM_CALL(D_ZT_STR)

KeyLoop:
call GET_KEY
or   a
jr   z, KeyLoop
ret