Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: spud2451 on October 11, 2013, 07:31:55 am

Title: Stubborn Code!
Post by: spud2451 on October 11, 2013, 07:31:55 am
I've been trying to debug some code for a while but cant seem to figure it out. I'm trying to have some one put the name of an ASM/AXE program in "Str1" and then have it execute it. I'm using the Run Program axiom and the Detokenize axiom. Can someone please tell me what I'm doing wrong? :mad: :banghead:

here's the code
Code: [Select]
.mouse
#Axiom(RUNPRGM)
#Axiom(DETOKENI)
GetCalc("Str1")->F
detokenize(F,L1,255)
RunPrgm(L1)
Title: Re: Stubborn Code!
Post by: Streetwalrus on October 11, 2013, 11:00:05 am
Don't detokenize. RunPrgm expects a string of tokens. ;)
Title: Re: Stubborn Code!
Post by: spud2451 on October 11, 2013, 05:49:56 pm
It still didn't work. It still gives me the "invalid" error. Does anyone have any ideas?
Title: Re: Stubborn Code!
Post by: aeTIos on October 12, 2013, 07:30:47 am
Maybe did you change the pointer to F instead of L1?