RE: A85: VAR_NEM / VAR_DELETE


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

RE: A85: VAR_NEM / VAR_DELETE




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

----------
From: 	Peter PDooM Kaufmann[SMTP:p_doom@space.ch]
Sent: 	Monday, August 24, 1998 3:40 PM
To: 	assembly-85@lists.ticalc.org
Subject: 	A85: VAR_NEM / VAR_DELETE


hello
Can anyone tell me how to use the VAR_NEW and VAR_DELETE-rom
functions? Where are they located and what input-paramters do they
take?

Thanks a lot
Peter




begin 600 WINMAIL.DAT
M>)\^(B@``0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$-@ 0`
M`@````(``@`!!) &`$@!```!````# ````,``# #````"P`/#@`````"`?\/
M`0```%<`````````@2L?I+ZC$!F=;@#=`0]4`@````!A<W-E;6)L>2TX-4!L
M:7-T<RYT:6-A;&,N;W)G`%--5% `87-S96UB;'DM.#5 ;&ES=',N=&EC86QC
M+F]R9P``'@`", $````%````4TU44 `````>``,P`0```!T```!A<W-E;6)L
M>2TX-4!L:7-T<RYT:6-A;&,N;W)G``````,`%0P!`````P#^#P8````>``$P
M`0```!\````G87-S96UB;'DM.#5 ;&ES=',N=&EC86QC+F]R9R<```(!"S !
M````(@```%--5% Z05-314U"3%DM.#5 3$E35%,N5$E#04Q#+D]21P````,`
M`#D`````"P! .@$````"`?8/`0````0````````#PD$!"( '`!@```!)4$TN
M36EC<F]S;V9T($UA:6PN3F]T90`Q" $$@ $`'@```%)%.B!!.#4Z(%9!4E].
M14T@+R!605)?1$5,151%`(L'`06 `P`.````S@<(`!@`$@`P`!D``0!1`0$@
M@ ,`#@```,X'" `8`!(`* `"``$`,@$!"8 !`"$````T0T(X0C Y13@P,T)$
M,C$Q044R-C0T-#4U,S4T,# P, #F!@$#D 8`1 8``!(````+`",```````,`
M)@``````"P`I```````#`#8``````$ `.0!@HG<1PL^]`1X`< `!````'@``
M`%)%.B!!.#4Z(%9!4E].14T@+R!605)?1$5,151%`````@%Q``$````6````
M`;W/PA%FGK"X33N $=*N)D1%4U0`````'@`># $````%````4TU44 `````>
M`!\,`0```!L```!R:6-H87)D;&5W:7- 8V5D87)C:71Y+FYE= ```P`&$-Y\
MUJT#``<0F@0``!X`"! !````90```%1(25-705-404M%3D923TU422U23TTQ
M,%185"Q7251(049%5T%$1$E424].4R]#3U)214-424].4T)9345)1$Q)2T54
M3TY/5$4L5$A!5%1(14%,3$]#051%1E5.0U1)3TY$3T4``````@$)$ $```"Y
M! ``M00``'X)``!,6D9U'F [R?\`"@$/`A4"J 7K`H,`4 +R"0(`8V@*P'-E
M=#(W!@`&PP*#,@/%`@!P<D)Q$>)S=&5M`H,S-P+D!Q,"@S0$1A,S,2!W"%4'
ML@* ?0J ",\)V3OQ& \R-34"@ J!#;$+8.!N9S$P,Q10"PH5844+\F,`0"!4
M: 0`(*QW800@`9!K"? @`U)!'.!)+5)/31LP+@D,T'0L'3!I=&@@1F$=T ?1
M861D'R!I60(@<R\%H1@08R #(&AB>2 '@"X*A0J%26 G9"!L:1V@'7!ON"!N
M;Q/0'O ?,&$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