Re: A86: Zero Terminated Strings
[Prev][Next][Index][Thread]
Re: A86: Zero Terminated Strings
Mark L wrote:
>
> 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?
i have no idea, i think its something to with how the calc loads the
string into the registers
> 2. When is it necessary to use the 0? In some source code it's not
> always there.
same here
> 3. Does the 0 take up a byte in the program itself or is it just for
> the compiler?
yes it adds to the program because it is just like a table with a 0 in
it (wouldnt that suck if all the 0s in your table vanished :)
References: