[A83] Re: Y-vars


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

[A83] Re: Y-vars




that works too... although if you delete an equation var, you have to make
sure that it always gets created again.  failing to do so will crash the
users calc when he goes to the equation editor and an equation does not
exist.  so if you want to clear an equation var, make sure you set the
length to 0, don't delete it.

Brandon Sterner

----- Original Message -----
From: "Thomas Lutz" <tlutz@stevens-tech.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Sunday, December 16, 2001 10:51 PM
Subject: [A83] Re: Y-vars


>
> I usually use equation vars just like string....
>
> ld hl,Y1Def
> rst rMOV9TOOP1
> rst rFINDSYM
> call nc,DeleteIt
> ld hl,20
> B_CALL CreateEqu <--I think that's the right rom call.
> Inc de
> Inc de
> Ld hl,myEquationData
> Ld bc,20
> Ldir
> Ret
>
> DeleteIt:
> B_CALL DelVar
> Ret
>
> Y1Def: db whatever it is...don't feel like looking it up
>
> Is this good or bad practice? Neither?
>
> Thomas Lutz
> Stevens Institute of Technology
>
> -----Original Message-----
> From: assembly-83-bounce@lists.ticalc.org
> [mailto:assembly-83-bounce@lists.ticalc.org] On Behalf Of Brandon
> Sterner
> Sent: Sunday, December 16, 2001 7:45 PM
> To: assembly-83@lists.ticalc.org
> Subject: [A83] Re: Y-vars
>
>
> the first two bytes of the equation data are the length of the equation.
> you will need to modify these to the resulting length.  use deletemem to
> delete what ever data was in the equation var previously.  then you can
> use
> insertmem to insert your data.  bit 5 of the object type byte in the vat
> entry toggles wether or not its selected for graphing. locations.  The
> values in the bytes starting at  location 9776h contain numbers 0
> through 6
> which indicate what type of line should be plotted.
>
> Brandon Sterner
>
>
>
> ----- Original Message -----
> From: "Patai Gergely" <patai.ti@freemail.hu>
> To: <assembly-83@lists.ticalc.org>
> Sent: Sunday, December 16, 2001 2:06 PM
> Subject: [A83] Y-vars
>
>
> >
> > It just came into my mind: could someone explain me
> > in steps how data can be stored into the y-vars,
> > given that I have the address and the length of the data?
> >
> > PG
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
>





References: