RE: RE: A85: VAR_NEM / VAR_DELETE


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

RE: RE: A85: VAR_NEM / VAR_DELETE




hello
thanks a lot, Richard! The alloc-function seems to work fine, but I 
had some problems with VAR_DELETE.  
It looks like DE has to point to the data space (as input to DELETE), 
like returned by VAR_NEW. Is that possible?


> This was taken from TI-ROM10.txt, with a few additions/corrections by me.
> 
> I'd like to note, that the allocate function does not set the length of the 
> variable.  You gotta do that yourself.
> 
> Also, set BC to two bytes larger than you want the length in bytes to be, 
> that will account for the two bytes of the length word for the varaible.
> 
> I have tested all of these myself.  The original TI-ROM10.txt had some of 
> these a little wrong, and left out ROM versions 4.0 and 6.0
> 
> Have fun!  I hope this helps.
> 
> 			     3.0A   4.0		     6.0	 8.0     9.0     10.0
> +- Allocate memory 
> -+-------+-------+-------+-------+-------+-------+-------+
> |                   |  29AF |  29B3 |       |  29B3 |  29B7 |  2962 |  297C 
> |
> +-------------------+-------+-------+-------+-------+-------+-------+---  
> ----+
> Input : OP1 holds variable data, BC holds length to allocate
> Result : HL = pointer to VAT entry
>          DE = pointer to data space
>          BC is destroyed
> 
> +- Delete variable -+-------+-------+-------+-------+-------+-------+---  
> ----+
> |                   |  2C58 |  2C5C |       |  2C5C |  2C60 |  2C0B |  2C25 
> |
> +-------------------+-------+-------+-------+-------+-------+-------+---  
> ----+
> Input : OP1 holds variable to delete, HL -> VAT entry


References: