TI-86 Basic


Hello, World


What you'll learn:



Code
Float
Normal
". Hello, World"→A
AxesOff
GridOff
ClDrw
FnOff
ClLCD
Disp "1"+A
Pause
ClLCD
Outpt(1,1,"2"+A
Pause
Text(0,0,"3"+A
Pause
ClDrw
AxesOn
ClLCD
DelVar(A
DelVar(y


First of all, to get to the Program Editor, turn on your TI-86. Press PRGM, right arrow, right arrow, and ENTER. Type in the above code or exit the program editor and send it to your TI-86 using FastLink v1.4. Look at the first 8 lines of code. After reading the provided explanations, you'll understand that they fix system settings so the program will look right when executed. By saving ". Hello, World" as A you save a few bytes and minutes in the coding. With Axes, Grid, and y= off you get a perfectly clear Graph Screen. 'ClLCD' of course clears the Home Screen. 'ClrDraw' makes sure the Graph Screen is clear, just in case of pictures. Making complex programs is very good, but making small, complex programs are much, much better. The 1st thing you should see is "1. HELLO, WORLD" at the top, left corner of your screen. Take notice of the top right corner, the moving lines indicates that your program is paused. This way of displaying "1. Hello, World" uses the 'Disp' command, which can be used with any form of data, except programs. The next way uses 'Outpt(', which has the same liberties as the 'Disp' command. You should see "2. Hello, World" at the top left corner of the screen. Both of those occur on the Home Screen. The last form uses the Graph Screen for displaying data in text form. Much like 'Outpt(', 'Text(' needs coordinates defined and an argument to show. Look at the lines in the code and any references in you manual for help if you don't understand. 'Text(' obviously produces a smaller font, in this case "3. Hello, World" is shown in the top left corner. Notice that each form pauses. Why? Because without the pauses, you wouldn't be able to see what the important commands do. After the last form is displayed and you press ENTER (which you do get past a pause), the Home Screen and Graph Screen are cleared and reset. 'A' is deleted because all good programs clean up after themselves. 'y' is deleted because it's usually created as a result of using the Graph Screen. When we get to graphics, 'y' will be used to save us from naming more variables than we have to, since it's created anyway. In many cases 'x' is also created, but not with 'Text('. Play with the 'Outpt(' and 'Text(' commands. 'Output(A,B,"C' works if A is between 1 and 8 and if B is between 1 and 21. 'Text(A,B,"C' works if A is between 0 and 57 and if B is between 0 and 126.

This concludes Lesson 1 "Hello, World"
Lesson 2: Pythagorean Theorem

Any Errors need to be reported to William White.