TI-BASIC
From Wikipedia, the free encyclopedia
- This article is about the calculator programming language. For the TI 99/4A home computer programming language, see TI BASIC (TI 99/4A).
TI-BASIC is the unofficial name of a BASIC-like language built into Texas Instruments (TI)'s graphing calculators. (Some critics have dubbed it "TI" because of its "extensive programming capability".) It is the simplest way to program any TI calculator; assembly language (often referred to as "asm") can also be used, and C compilers exist for translation into assembly: TIGCC for Motorola 68000 based calculators, and Z88DK for Zilog Z80 based calculators. However, both of them are in fact cross-compilers, not allowing on-calculator programming. Although TI-BASIC is considerably slower than assembler and consequently is not very good for programming fast applications and games, it is very useful for quickly writing programs to solve math problems.
Although it is lacking in features and usability, TI-BASIC is nonetheless an important factor in the programming community. Because TI graphing calculators are required at nearly all high schools, TI-BASIC is often the first glimpse many students have into the world of programming. Learning to program in TI-BASIC is a relatively easy task, encouraging potential programmers to explore the field of computer science.
Contents |
[edit] Examples
These examples are slightly TI-83-series-biased. For example, "ClrHome" would be "ClLCD" on the TI-85 and TI-86.
An entirely different command is required to clear the screen in the TI-89. Since output is generally displayed on the ProgramIO screen, the "ClrIO" command is required to clear the output screen. There exists a "ClrHome" command on the TI-89, and it performs its function - namely, clearing the Home screen. For the purpose of programs, however, this command is essentially useless (yet it is invaluable in the programming of functions).
[edit] Hello world
The following program, when run, will clear the standard output and print the phrase "HELLO WORLD!"
:
Z80 Series
PROGRAM:HELLOWLD :ClrHome :Disp "HELLO, WORLD!"
68000 Series
hellowld() :Prgm :ClrIO :Disp "Hello, World!" :EndPrgm
[edit] See also
[edit] External links
- http://education.ti.com/ Texas Instruments official website
- http://wikiti.denglend.net/ Wiki for TI calculators.
- TI-Basic Developer Wiki for TI-Basic programmers
- ticalc.org: TI Calculator Community and Downloadable Program Source
- http://www.ticalc.org/archives/files/fileinfo/391/39193.html TI-83+/84+ BASIC Programming Tutorials