Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: lookitsan00b on November 23, 2010, 10:54:31 pm

Title: TI-OS Command addition
Post by: lookitsan00b on November 23, 2010, 10:54:31 pm
I'm sure we all can think of a few commands TIOS could really use.

For example, I was thinking of a 'With' command. Something that can change the 'Ans' automatically pasted at the beginning of a blank line when you push an op key to 'A', 'sin(180', or even '(-B+sqrt(BB-4AC))/(2A)'. Something that allows us to pass arguments to programs (using lowercase letters, of course) would be nice too.

Oh and while I'm at it, an app that'll allow us to make our custom-made quadratic solvers into token commands would be nice ;)

If it's not possible, consider it a KOS math program suggestion, or even a suggestion for future OSes.

It doesn't have to be an OS patch/mod/whatchamacallit, an app that'll temporarily install these would be nice too.
Title: Re: TI-OS Command addition
Post by: AngelFish on November 23, 2010, 11:11:32 pm
I wish it allowed an MD5 hash. There are Bcalls designed to do exactly that, so it shouldn't be much of a problem.
Title: Re: TI-OS Command addition
Post by: lookitsan00b on November 23, 2010, 11:19:09 pm
Really? Theres soo many B-calls and far too many have almost cryptic names that I never probably would've known...

Btw this was supposed to be an I-suggest-something-awesome-and-somebody-else-takes-it-and-makes-it situation, but I do suppose I could give it a shot, given links to the documentation...

Hooray for Mimas! :D

EDIT: whats an MD5 hash? And what do oversized tater-tots have to do with anything?
Title: Re: TI-OS Command addition
Post by: AngelFish on November 23, 2010, 11:25:49 pm
A hash is a (hopefully unique) representation of an arbitrarily sized string of data in another fixed length string. The MD5 part just describes what algorithm was used to compute the hash. This would be very useful in RPGs, because it would allow you to check if the user has tampered with the save data or not. It would also allow you to check for the existence of files if their data is known.

If you want documentation, BrandonW published it at WikiTI (http://wikiti.brandonw.net/index.php?title=Category:83Plus:BCALLs:By_Name:Cryptography)
Title: Re: TI-OS Command addition
Post by: lookitsan00b on November 23, 2010, 11:46:47 pm
Ooooohhhhhhhh...
You're saying that'd be a useful feature?
*slaps self
I was wondering how it'd help me create and assign functions to tokens... :P
Title: Re: TI-OS Command addition
Post by: DJ Omnimaga on November 23, 2010, 11:54:01 pm
Could new commands be implemented through parser hooks? (Kinda like Omnicalc, xLIB, Doors CS, Celtic and Symbolic?)
Title: Re: TI-OS Command addition
Post by: AngelFish on November 24, 2010, 12:47:51 am
Could new commands be implemented through parser hooks? (Kinda like Omnicalc, xLIB, Doors CS, Celtic and Symbolic?)

In the same manner as those hooks, yes. If you're talking about installing new tokens, no. It screws up the OS if you make new tokens and those tokens would be deleted every time you boot the calculator or use certain OS functions. I imagine it's why Axe only renames the tokens.
Title: Re: TI-OS Command addition
Post by: DJ Omnimaga on November 24, 2010, 01:58:48 am
Nah, not new tokens. I have very bad memories from Omnicalc 1.0 and 1.1, which used new tokens instead of real(20. Those programs can't be sent from a calc to another unless they have Omnicalc installed or that the files are grouped. Opening such file without Omnicalc installed could cause crashes. I don't think they could be sent to a computer without grouping them first either.

Axe only renames tokens, like language localization apps. It doesn't re-order them in the CATALOG, though.
Title: Re: TI-OS Command addition
Post by: Eeems on November 24, 2010, 02:01:04 am
Well symbolic does something like adding new tokens. I wonder if there would be a way to patch new tokens into the OS
Title: Re: TI-OS Command addition
Post by: DJ Omnimaga on November 24, 2010, 02:03:40 am
Oh wait I forgot that one was not updated. Omnicalc 1.0/1.1 (2002) worked similarly. I guess that's why Kerm/Iambian/tr1p1ea couldn't chain their apps with it...

Also Eeems what do you mean by "if rare would be a way"? ???
Title: Re: TI-OS Command addition
Post by: AngelFish on November 24, 2010, 02:12:55 am
Well symbolic does something like adding new tokens. I wonder if there would be a way to patch new tokens into the OS

I'm not sure how Symbolic does it (possibly by directing you to the app), but according to the TI-OS documentation, the OS expects the same number of tokens. It will eliminate any other ones it finds.
Title: Re: TI-OS Command addition
Post by: Builderboy on November 24, 2010, 02:20:33 am
I believe Symbolic temporarily renames unused tokens like the ... token, and it also installs a hook that makes it able to run a function.  This is apparent if you try to use the function, and then press 2nd enter and the token changes into something else.
Title: Re: TI-OS Command addition
Post by: DJ Omnimaga on November 24, 2010, 02:31:05 am
I'M not sure either.

Btw does Symbolic works on OS 1.15 or higher? I know Omnicalc 1.0 and 1.1 didn't. You needed OS 1.12 through 1.14 to run it. Now it works on 1.13 or higher.

This is how Omnicalc shows illegal tokens in version 1.00. Note, the first time I chose to not rename illegal tokens when uninstalling it. The second time I did and it froze (it always did when I used it).
Title: Re: TI-OS Command addition
Post by: Deep Toaster on November 24, 2010, 11:30:54 am
I'M not sure either.

Btw does Symbolic works on OS 1.15 or higher? I know Omnicalc 1.0 and 1.1 didn't. You needed OS 1.12 through 1.14 to run it. Now it works on 1.13 or higher.

This is how Omnicalc shows illegal tokens in version 1.00. Note, the first time I chose to not rename illegal tokens when uninstalling it. The second time I did and it froze (it always did when I used it).

Yeah, they both work on 1.19 now. Also, Omnicalc now apparently deletes variables containing illegal tokens instead of modifying them, now. Symbolic was changed so that it could chain with Omnicalc's real( syntax.
Title: Re: TI-OS Command addition
Post by: Munchor on November 24, 2010, 12:18:08 pm
I'm sure we all can think of a few commands TIOS could really use.

For example, I was thinking of a 'With' command. Something that can change the 'Ans' automatically pasted at the beginning of a blank line when you push an op key to 'A', 'sin(180', or even '(-B+sqrt(BB-4AC))/(2A)'. Something that allows us to pass arguments to programs (using lowercase letters, of course) would be nice too.

Oh and while I'm at it, an app that'll allow us to make our custom-made quadratic solvers into token commands would be nice ;)

If it's not possible, consider it a KOS math program suggestion, or even a suggestion for future OSes.

It doesn't have to be an OS patch/mod/whatchamacallit, an app that'll temporarily install these would be nice too.

Who created Omnicalc, he could feature those :D
Title: Re: TI-OS Command addition
Post by: DJ Omnimaga on November 24, 2010, 07:25:25 pm
Michael Vincent, but he retired from news editor on ticalc.org last year so I doubt he has much time anymore to work on calc stuff.

Doors CS extension? (I'm not sure if Kerm wants it to be game-oriented, though)