Re: A85: Variables


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

Re: A85: Variables




On Tue, 23 Dec 1997 17:10:52 EST, you wrote:

>
>How do you store a variable in the program string itself?
>

If you want to do that, all you have to do is something like:

Store4inVariable:
   ld hl,&Variable
   ld (hl),4
   ret

Variable:
   .db 0

for usgard.  No "&" for Rigel or PhatOS.  If you are using zshell, you
will need to set the ZSBit to recalculate the checksum and add
(PROGRAM_ADDR) to the Variable offset.

-mike pearce
mgp4007@omega.uta.edu


References: