RE: A86: Zero Terminated Strings


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

RE: A86: Zero Terminated Strings



The 0 is a character that indicates the end of the string. It does take up 
a byte in the program. Some strings in certain programs may not have the 0 
because they are not displayed with the ROM call. Maybe the string is just 
copied to another part of memory, or maybe it's length terminated (where 
the length of the string is indicated by a byte at the beginning of the 
string).
________________

Jeff Tyrrill
http://tyrrill-ticalc.home.ml.org/
http://ti-philes.home.ml.org/


-----Original Message-----
From:	Mark L [SMTP:kifyre@megsinet.net]
Sent:	Tuesday, December 02, 1997 3:39 PM
To:	ytrrty trytyyrt eryttry
Subject:	A86: Zero Terminated Strings

 << File: ATT00000.htm >> I have 3 questions about that little 0 that comes 
after .db's.

1. Why is it necessary to stick a ",0" after certain .db strings?

2. When is it necessary to use the 0? In some source code it's not always 
there.

3. Does the 0 take up a byte in the program itself or is it just for the 
compiler?

Thanks in advance for taking the time to answer. I appreciate it.

Mark L.