Author Topic: Probably a dumb question.  (Read 4305 times)

0 Members and 1 Guest are viewing this topic.

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Probably a dumb question.
« 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)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Probably a dumb question.
« Reply #1 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: Probably a dumb question.
« Reply #2 on: December 01, 2010, 06:05:48 pm »
Is there a way to run a basic program with Asm(  )?

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Probably a dumb question.
« Reply #3 on: December 01, 2010, 06:06:43 pm »
there is not. Asm() is designed for assembly hex code


Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Probably a dumb question.
« Reply #4 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: Probably a dumb question.
« Reply #5 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 :(

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Probably a dumb question.
« Reply #6 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
« Last Edit: December 01, 2010, 06:12:00 pm by squidgetx »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Probably a dumb question.
« Reply #7 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Probably a dumb question.
« Reply #8 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.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Probably a dumb question.
« Reply #9 on: December 01, 2010, 06:40:20 pm »
Wasn't there a BCALL posted somewhere in another thread that did exactly this?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Probably a dumb question.
« Reply #10 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.

* Qwerty facepalms

And yes, there are B_calls addressing the interpreter.
« Last Edit: December 01, 2010, 06:41:53 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: Probably a dumb question.
« Reply #11 on: December 01, 2010, 06:45:53 pm »
sweetness!