A82: Re:


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

A82: Re:



Its there.

It does define byte. You use it if you want to put text into the program to display. The ,0 at the end says to put a 0 byte at the end. If we
wanted to display it, we could do

ld hl, Ex
ROM_CALL(D_ZT_STR)

Ex:
.db "Hi there",0

Its also used, along with the .dw (define word) to make extra space at the end of the program used for saved games, scores, and other permanent
data.

The Weilers wrote:

> Pardon my ignorance, but what does the ".db" command to anyway?  I don't think I have seen it mentioned in the "Online Zshell School" thing.




References: