Re: A86: Re: Assembly
[Prev][Next][Index][Thread]
Re: A86: Re: Assembly
In a message dated 4/21/99 11:00:22 Eastern Daylight Time, BlAsTo1414@aol.com
writes:
> Can anyone explain the _delvar command? would we just load a variable into
> hl, and use delvar? or is there some kind of vat searching?
_delvar uses the output from _findsym (rst 10h)
so to define the macro DelVar:
#define Delvar(var) ld hl,var \ rst 20h \ rst 10h \ call nc,_delvar
copy the varname to OP1, _findsym, and if the variable exists, delete it.
of course, no asm programs ever really need this for their own variables
(just use allocated ram), and that should probably be explained to a basic
programmer early on. it is very inefficient to create new variables for
simple stuff that doesn't need to be stored after the program exits.