[A83] Re: Writing equations to Y1 (in Ion)


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

[A83] Re: Writing equations to Y1 (in Ion)




Just a small optimization. All TIOS vars, except programs, can be looked up by _findSym. So calling that instead of _chkFindSym is slightly faster. Further more, there's an rst for _findSym: rst 10h


> ----------------------------------------
> From: Emir Sakic <saka@hotmail.com>
> Sent: Sat Sep 22 03:19:23 GMT+02:00 2001
> To: <assembly-83@lists.ticalc.org>
> Subject: [A83] Re: Writing equations to Y1 (in Ion)
> 
> 
> 
> 
>    ld hl,__equname
>    rst 20h                          ;copy to OP1
>    bcall(_CHKFINDSYM)
>    bcallnc(_delvar)                 ;delete if exists
>    ld hl,3                          ;size of equation in bytes
>    bcall(_CREATEEQU)
>    inc de
>    inc de                           ;de -> data storage
>    ld hl,__equation
>    ld bc,3
>    ldir                             ;copy equation
> 
>    ret
> 
> __equname:  .db $03,tVarEqu,tY1,0,0 ;change name here
> __equation: .db tX,tAdd,t1          ;"X+1"
> 
> ..end
> END
> 
> >
> >How do you write equations to Y1(2,3,etc) using Ion?
> >
> >Jim
> >
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 

-----------------------------------------------------
Mail.be, Free WebMail and Virtual Office
http://www.mail.be