Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Broseph Radson on December 01, 2010, 05:55:33 pm

Title: Probably a dumb question.
Post by: Broseph Radson on December 01, 2010, 05:55:33 pm
Well ive been inactive for a while, and ive never been much of an expert at programming so heres my dumb question lol. Is there a command in axe that lets you run a program regardless of what kind it is? And if not, is there a way to tell the difference between asm and basic programs and how would you run them accordingly using Axe? Im trying to make some sort of command line and im having issues parsing input as well but ill ask about that when i can get on a PC. (im on my old phone since my blackberry broke so i cant do hard returns sorry)
Title: Re: Probably a dumb question.
Post by: AngelFish on December 01, 2010, 06:03:32 pm
You can't directly run outside programs in Axe without writing the routine yourself. The parser attempts to parse any programs you call in Axe.
Title: Re: Probably a dumb question.
Post by: Broseph Radson on December 01, 2010, 06:05:48 pm
Is there a way to run a basic program with Asm(  )?
Title: Re: Probably a dumb question.
Post by: nemo on December 01, 2010, 06:06:43 pm
there is not. Asm() is designed for assembly hex code
Title: Re: Probably a dumb question.
Post by: AngelFish on December 01, 2010, 06:06:46 pm
You would probably have to do an OS call and initiate the BASIC interpreter. I don't think anyone's ever figured out how to do it. I'd love to be wrong about that, though.
Title: Re: Probably a dumb question.
Post by: Broseph Radson on December 01, 2010, 06:09:49 pm
I know how Asm(  ) workks :P i was wondering if there was an assembly command or commands that i could put in the program as hex using Asm( but i guess there isnt anything :(
Title: Re: Probably a dumb question.
Post by: squidgetx on December 01, 2010, 06:11:48 pm
This snippet of asm(hex) will run nostub progs :P I don't think you could run programs made for shells though without having the shell routines somehow integrated into your program or on the calc (not sure about this though)
Code: [Select]
PAsm(E7EF7C4E)This would execute the program whose name is pointed to by P, just as if you had run it by typing Asm(prgmNAME) on the homescreen
Title: Re: Probably a dumb question.
Post by: AngelFish on December 01, 2010, 06:33:28 pm
i was wondering if there was an assembly command or commands that i could put in the program as hex using Asm( but i guess there isnt anything :(

There IS a way to run BASIC programs in Assembly because TI-OS does it. The problem is that no one really knows how it's done. Let me check if BrandonW documented the interpreter.
Title: Re: Probably a dumb question.
Post by: Runer112 on December 01, 2010, 06:35:12 pm
i was wondering if there was an assembly command or commands that i could put in the program as hex using Asm( but i guess there isnt anything :(

There IS a way to run BASIC programs in Assembly because TI-OS does it. The problem is that no one really knows how it's done. Let me check if BrandonW documented the interpreter.

I'm sure people know how it's done, as it has been done in many instances before. Any shell application has to be able to do it, for instance.
Title: Re: Probably a dumb question.
Post by: Builderboy on December 01, 2010, 06:40:20 pm
Wasn't there a BCALL posted somewhere in another thread that did exactly this?
Title: Re: Probably a dumb question.
Post by: AngelFish on December 01, 2010, 06:41:42 pm

I'm sure people know how it's done, as it has been done in many instances before. Any shell application has to be able to do it, for instance.

/me facepalms

And yes, there are B_calls addressing the interpreter.
Title: Re: Probably a dumb question.
Post by: Broseph Radson on December 01, 2010, 06:45:53 pm
sweetness!