Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: spud2451 on June 25, 2012, 11:40:14 am

Title: Two questions about Axe Parser
Post 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)
Title: Re: Two questions about Axe Parser
Post by: Hayleia on June 25, 2012, 11:48:48 am
how would you run different programs from axe.
This (http://www.omnimaga.org/index.php?action=downloads;sa=view;down=786) may help you :)
Title: Re: Two questions about Axe Parser
Post by: Matrefeytontias on June 25, 2012, 11:51:57 am
You can access the real Ans like a classic variable :
Code: [Select]
9→AnsBut 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)
Title: Re: Two questions about Axe Parser
Post by: parserp on June 25, 2012, 12:08:55 pm
Yes, if you do something like:
Code: [Select]
Ans->Xit will store the Ans variable to X (it will mess up if Ans is out of range of a 2 byte number)
Title: Re: Two questions about Axe Parser
Post by: spud2451 on June 26, 2012, 01:12:01 pm
can anyone tell me how to run a program from axe without downloading anything please?
Title: Re: Two questions about Axe Parser
Post by: parserp on June 26, 2012, 01:14:45 pm
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)
Title: Re: Two questions about Axe Parser
Post by: aeTIos on June 26, 2012, 01:24:59 pm
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.

Title: Re: Two questions about Axe Parser
Post by: Deep Toaster on June 26, 2012, 04:26:44 pm
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.
Title: Re: Two questions about Axe Parser
Post by: aeTIos on June 26, 2012, 04:47:38 pm
Does that also work with the OS variable? O.O
Title: Re: Two questions about Axe Parser
Post by: shmibs on June 26, 2012, 05:43:22 pm
no, just with ans. the others are a simple getcalc()->pointer, value->pointer, though
Title: Re: Two questions about Axe Parser
Post by: aeTIos on June 26, 2012, 05:46:07 pm
I meant "Does that also work with the OS variable ANS"? So yeah O.O didna knodat.
Title: Re: Two questions about Axe Parser
Post by: Matrefeytontias on June 26, 2012, 07:09:24 pm
There is only one Ans var, even in Axe programs, the OS's.