Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: spud2451 on June 25, 2012, 11:40:14 am
-
Hey everyone I have a few questions about axe parser. First how do you access the system's ANS variable in axe?. how would you run different programs from axe. If anyone has any answers please reply. thanks (:c)
-
how would you run different programs from axe.
This (http://www.omnimaga.org/index.php?action=downloads;sa=view;down=786) may help you :)
-
You can access the real Ans like a classic variable :
9→Ans
But if you want to read it, then it's converted into 2 bytes number (unless you use the float{} func, but I don't know it enough)
-
Yes, if you do something like:
Ans->X
it will store the Ans variable to X (it will mess up if Ans is out of range of a 2 byte number)
-
can anyone tell me how to run a program from axe without downloading anything please?
-
can anyone tell me how to run a program from axe without downloading anything please?
Sadly, it is not possible without the axiom D: (unless you know asm hexcodes)
-
Well that's not really true. Lemme look it up :)
About question 1: If you want to store a program's output in ans, that's pretty easy. I think I have a little routine for that. If you want to read ANS, that's a bit more complicated since axe only works with integers (so no decimals). If you have no decimals and/ or don't care about them, I have a routine for that too.
-
About question 1: If you want to store a program's output in ans, that's pretty easy. I think I have a little routine for that. If you want to read ANS, that's a bit more complicated since axe only works with integers (so no decimals). If you have no decimals and/ or don't care about them, I have a routine for that too.
As people have said already, if you're just working with a two-byte integer, you can just use whatever→Ans and Ans→whatever. Only problem is that your program will throw an error if Ans isn't between 0 and 65,535.
-
Does that also work with the OS variable? O.O
-
no, just with ans. the others are a simple getcalc()->pointer, value->pointer, though
-
I meant "Does that also work with the OS variable ANS"? So yeah O.O didna knodat.
-
There is only one Ans var, even in Axe programs, the OS's.