Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: calcprogrammera on October 09, 2011, 12:14:26 am

Title: Modifying real numbers from ram ---AXE PARSER
Post by: calcprogrammera on October 09, 2011, 12:14:26 am
Hey I have a question about the Axe Parser
How would I create a program that modifies and changes real numbers from RAM?
I figure that creating an assembly program that can mass store and manipulate data and store it back into ram would be useful in some purposes.  For instance, storing 5 to Real Number A, 8 to B, 1 to C, 12 to D, and so on.

I don't understand how to apply pointers to real numbers; so far this is what I have
"varA" > Str1
GetCalc(Str1) > B
5 > {B}r
The problem is that this stores the value 0.5 to A instead of 5.  Im confused.  Please help!
Title: Re: Modifying real numbers from ram ---AXE PARSER
Post by: jacobly on October 09, 2011, 12:42:23 am
try 5 > float{B}
that way, it converts 5 to a real number before storing it to address B
Title: Re: Modifying real numbers from ram ---AXE PARSER
Post by: calc84maniac on October 09, 2011, 12:44:11 am
Hey, welcome to Omnimaga!

That code doesn't work because TI uses its own format for numbers. You can convert an integer to a TI real number like this: 5→float{B}

I hope that helps!

Edit: Ninja'd :P
Also, 2048 posts woot
Title: Re: Modifying real numbers from ram ---AXE PARSER
Post by: DrDnar on October 09, 2011, 02:34:17 am
Axe doesn't (to my knowledge) have a proper library for using the EOS's massive floating-point library; there are literally hundreds of routines. (It is called a "calculator.") There are even routines for applying an operation to every element in a list or matrix. Plus, there are lots of other (albeit slow) system routines that would be useful for what you want to do.
Title: Re: Modifying real numbers from ram ---AXE PARSER
Post by: calcprogrammera on October 12, 2011, 07:03:42 pm
Hmm... so how would i get the address of, say the real number A.  I tried the following code on Wabbitmu and my calculator:
"varA" → Str1
GetCalc(Str1) → B
5 → float{B}

My guess is that the address that I am trying to store the value 5 to is incorrect.  For some reason the number 5 isnt being stored into the Ram into the real number A.  Any guesses on what could be wrong?
Title: Re: Modifying real numbers from ram ---AXE PARSER
Post by: FinaleTI on October 12, 2011, 07:10:01 pm
Hmm... so how would i get the address of, say the real number A.  I tried the following code on Wabbitmu and my calculator:
"varA" → Str1
GetCalc(Str1) → B
5 → float{B}

My guess is that the address that I am trying to store the value 5 to is incorrect.  For some reason the number 5 isnt being stored into the Ram into the real number A.  Any guesses on what could be wrong?
What version of Axe are you using? If it's prior to 0.5.3 for some reason, then the offset should be float{B-2}.

Otherwise, what is the error? Is it storing an incorrect number, or is the real var A not being created?
Title: Re: Modifying real numbers from ram ---AXE PARSER
Post by: calcprogrammera on October 12, 2011, 07:11:44 pm
the variable A isnt being created! thanks! the version of axe that I was using was an older version haha