Opening the program
To begin programming in TI-Basic, one must first open the Program Editor PGRM:NEW. Then enter the desired name of the program and press enter. If done correctly, the program should be completely blank. The following examples are the only examples that will show the actual program name, all others will asssume that the name is present.
It should also be noted that it is assumed for the sake of this chapter that the name of the program is TEMP.
Hitting the ENTER key will add a new line. Thus, if you were on the first line of a program, the display would look like this:
But after pressing ENTER, it would look like this:
PROGRAM:TEMP : :
Now, one of the most very basic programs will be created: Hello, World!
Follow the list of commands as follows:
- PGRM:I/O:8 (ClrHome)
- PGRM:I/O:3 (Display)
- "HELLO, WORLD!"
If you followed the commands, the program should look like -
:ClrHome :Disp "HELLO, WORLD!"
To run the program, press 2nd:Quit(Mode) then PGRM, find the program name, and hit enter. The calculator should have the program name prefixed by 'pgrm' on the homescreen. Press enter and the program should run, displaying:
And that's your first program. An explanation of each commmand used can be found in the following chapters.
If you need to edit the program, go to PGRM:EDIT then find the name of the program.
|This page uses content from Wikibooks. The original book was at TI-Basic 84 Programming. The authors of this book were Jimmyatic and Dlrohrer2003. As with TI-BASIC Wiki, the text of Wikibooks is available under the Creative Commons Attribution-Share Alike License.|