* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: PrgmArgs  (Read 864 times)

0 Members and 1 Guest are viewing this topic.

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3155
  • Post Rating Ratio: +31/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
PrgmArgs
« on: March 13, 2015, 10:26:45 pm »
For the past few weeks i've been working on an app, which allows you to run TI-Basic programs with arguments.
It installs a parser hook, which parses 'prgm<name>(' to 'sin(<id>,'. Upon parsing sin( with 2 or more arguments it
launches prgm<name from id> with the arguments in list lARGS. Ans is returned as variable, allowing more
than only the program to be entered in the expression.


At this moment it won't parse programs and assumes the expression entered and parsed is less than
767 bytes. Also, since it's still not quite finished, it probably has some errors. Watch out for ram clears!

The source is available at: https://github.com/RobinDeWalvis/PrgmArgs
If you find any bugs or have any questions please post them below :)


  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18179
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: PrgmArgs
« Reply #1 on: March 14, 2015, 05:05:08 am »
I'm glad you could finally overcome the issues with the Radian token by the way. I actually like this idea for a BASIC extension because this is quite handy in other programming languages (even 68K/Nspire BASIC has it I think, right?). My only concerns were:

-Will it chain with Doors CS 7, Omnicalc, Symbolic or ZStart hooks so that we can have, for example, both DCS7/ZStart and PrgmArgs installed at the same time?

-Would people be willing to install a 16 KB app in addition to Doors CS just for one extra feature? I actually see this might be more handy for Silver Edition or CE owners due to the much larger Flash memory. Would it be possible to actually make this a program instead that can be archived afterward or is it out of the question?

Nonetheless, if you can pull this off without having side effects on the TI-OS and program execution, this could be a very handy feature in the future. :)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3155
  • Post Rating Ratio: +31/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
Re: PrgmArgs
« Reply #2 on: March 14, 2015, 10:46:52 am »
-Will it chain with Doors CS 7, Omnicalc, Symbolic or ZStart hooks so that we can have, for example, both DCS7/ZStart and PrgmArgs installed at the same time?
I currently do not have any chaining, and i haven't really tested compatibillity with other apps, sso that'll probably the next thing im going to work on

-Would people be willing to install a 16 KB app in addition to Doors CS just for one extra feature? I actually see this might be more handy for Silver Edition or CE owners due to the much larger Flash memory. Would it be possible to actually make this a program instead that can be archived afterward or is it out of the question?
Well, since it installs a parser hook, no. Also, the hook is not small enough to put somewhere on saferam, plus that will get corrupted and probably crash the calculator

Anyway, im glad you like it :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18179
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: PrgmArgs
« Reply #3 on: March 14, 2015, 10:02:02 pm »
Aah ok, sorry to hear. Good luck anyway :)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games