Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Deep Toaster on June 03, 2010, 07:36:06 pm

Title: Storage help?
Post by: Deep Toaster on June 03, 2010, 07:36:06 pm
I am really new at Axe, and I can't figure out how variable storage works. I have the following code:

Code: [Select]
:DiagnosticOff
:ClrHome
:"vMine"→Str1
:GetCalc(Str1)→A
:!If A
:GetCalc(Str1,3)→A
:ΔList(10,10,10)→{A}
:End

When compiling, Axe gives my an ERR: BAD SYMBOL.

Sorry if this is something obvious, but what did I do wrong?
Title: Re: Storage help?
Post by: cooliojazz on June 03, 2010, 08:01:48 pm
I don't think you can use ΔList( with things other than in program data storage... couldn't you just do 10→{A}:Fill(A,3) ? and you messed up your code tags =P
Title: Re: Storage help?
Post by: Deep Toaster on June 03, 2010, 08:05:44 pm
I don't think you can use ΔList( with things other than in program data storage... couldn't you just do 10→{A}:Fill(A,3) ? and you messed up your code tags =P

Whoops, code tags fixed now.

And I didn't know that. Thanks.
Title: Re: Storage help?
Post by: DJ Omnimaga on June 03, 2010, 10:20:00 pm
True I recall trying to do ΔList(0,1,2,3)->{POINTER} or [00010203]->{POINTER} before and got a BAD SYMBOL error too. I think when updating bytes at a pointer, you need to update them one by one (or with Fill() if all of them are the same value)
Title: Re: Storage help?
Post by: calc84maniac on June 03, 2010, 10:37:59 pm
Note, you need to use Fill(A,2) because it will fill the two bytes after A, which is what you want.
Title: Re: Storage help?
Post by: Deep Toaster on June 04, 2010, 10:09:56 am
Okay, changed it, thanks.