Re: A85: VAR_RESIZE


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

Re: A85: VAR_RESIZE




All the build in VAR functions (which is what Usgard uses) automaticly
move the vars around in the mem, so there is not reason for Usgard to do
that. The problem is that when a var is deleted (or made smaller using
resize) you program might be moved. Therefore Usgard needs to re-relocate
your program and adjust the return addresse. When a new var is
created it is always created after all the existing vars, so there is not
reason to adjust anything there. 

DInes

__________________________________________

Dines Justesen
Email: c958362@student.dtu.dk
WWW  : http://www.student.dtu.dk/~c958362/
__________________________________________

On Wed, 30 Sep 1998, kaus wrote:

> 
> Yes. it does. you need RCALL with VAR_DELETE VAR_EXEC and VAR_RESIZE
> it is because they move all stored variables on the calc to save room.
> sort of like defragmenting a hard drive.  sorta
> however, if your program will **always** be before the one you are
> resizing/deleting, you don't need to there.  also, for exec, if you know
> the program being called won't mess up the variable stack, you dont have to
> worry about it eiter.  but, for the sake of making sure you have covered
> every possiblity, you should always use rcall for all three.
> 
> Jonathan
> 
> 
> At 02:19 PM 9/30/98 -0700, you wrote:
> >
> >I have a question about Usgard's VAR_RESIZE function.  The Usgard
> >documentation doesn't mention whether subroutines calling VAR_RESIZE need
> >to be called with RCALL_ or not.  Does anyone know if RCALL_ is necessary?
> >
> >Thanks
> >
> >
> 


References: