Quantcast
Channel: Cemetech
Viewing all articles
Browse latest Browse all 75370

TI-BASIC :: RE: Linux OS in Hybrid TI-BASIC

$
0
0
Author: Roguebantha
Posted: 04 Dec 2012 05:52:02 pm (GMT -5)

Here, let's see if this helps:
BatLib intercepts the dim( token. Have you ever created a program like this?:
While 1
Input "",Str0
if Str0 = "HELLO"
Disp "HELLO!"
if Str0 = "STOP"
Stop
expr(Str0
End
Basically, this program will look like a normal ti-calculator and run like it too, but if you enter the string "HELLO" it says hello back,and if you enter "STOP" the program ends. Basically, the program is intercepting the text you put on the homescreen and running it through an additional series of if statements. It's similar to that in Libraries. It hooks the parser that interprets the commands that you run on the homescreen, and adds its own interpreter to the mix.


Viewing all articles
Browse latest Browse all 75370

Trending Articles