CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: Snektron on March 13, 2015, 10:26:45 PM

Title: [Z80 Asm] PrgmArgs
Post by: Snektron 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.
(http://i.imgur.com/tWpnLeZ.gif)

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 :)
Title: Re: PrgmArgs
Post by: Dream of Omnimaga 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. :)
Title: Re: [Z80 Asm] PrgmArgs
Post by: Snektron on March 14, 2015, 10:46:52 AM
Quote from: DJ Omnimaga on March 14, 2015, 05:05:08 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

Quote from: DJ Omnimaga on March 14, 2015, 05:05:08 AM
-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 :)
Title: Re: PrgmArgs
Post by: Dream of Omnimaga on March 14, 2015, 10:02:02 PM
Aah ok, sorry to hear. Good luck anyway :)