Author Topic: Storage help?  (Read 3832 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Storage help?
« 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?
« Last Edit: June 03, 2010, 08:05:02 pm by Deep Thought »




Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Storage help?
« Reply #1 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
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Storage help?
« Reply #2 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.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Storage help?
« Reply #3 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)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Storage help?
« Reply #4 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.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Storage help?
« Reply #5 on: June 04, 2010, 10:09:56 am »
Okay, changed it, thanks.