Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: ACagliano on December 21, 2010, 10:17:03 am
-
I know that Axe has support for creating files of variables in Archive, so that they can be read (y-vars), but I am not quite sure how to create the files, then how to reference, read from, and write to them once they have been created. Help, anyone?
-
:"appvNAME"?Str1
:GetCalc(Str1)??
:!If ?
:UnarchiveStr1
:GetCalc(Str1)??End
:!If ?
:GetCalc(Str1,[desired size])??END
Take a look at that code...
Also, check this topic (http://ourl.ca/8402). That topic has quite a lot of information, the above code was very useful to me :)
-
Yes. I know how to do that. But, I'm referring something else, involving not Unarchiving the variable. It involves the variables Y1-Y0.
-
by using files Y0 Y1 ... you can only read the appvar (not store numbers in it)
Getcalc(NAME",Y0)
Disp {Y0}r>Dec
Disp {Y0+1}>Dec
...
-
Ah, ok. That would help for games, when I need to read from a map without editing it.
Does Y0 take up RAM?
-
i don't know, but i don't think so (it wouln't be interesting :P )
-
They do take up some RAM, but i believe they are in a secret free memory spot hidden in the OS, so they use up none of the L1-L6 pieces of RAM, nor do they use up any of user RAM
Note that with the Y1 files, you can only read from archive, you cannot create files, delete files, or much anything else wesides read from archive.