Basic Calculators
TI-BASIC is the unofficial name of a BASIC-like language built into Texas Instruments (TI)'s graphing calculators. (TI only refers to it as the calculators' "extensive programming capability". more...
Home
Amplifiers
Audio Accessories & Cables
Cable TV
DVD Players & Recorders
Digital Video Recorders, PVR
Gadgets & Other Electronics
Air Purifiers
Batteries & Chargers
Breathalyzers
Calculators
Basic Calculators
Books, Manuals
Financial Calculators
Hewlett-Packard
Other Brands
Sharp
Texas Instruments
Graphing Calculators
Casio
Hewlett-Packard
Other Brands
Texas Instruments
Other Calculators
Printing Calculators
Scientific Calculators
Hewlett-Packard
Other
Texas Instruments
Vintage Calculators
Clocks
Dictionaries & Translators
eBooks
Flashlight Key Chains
Fresnel Lenses
Home Automation
Language Filters
Laser Pointers
Laserdisc Players
Metal Detectors
Other Gadgets
Polygraphs
Radiation Detectors
RF Locators
Surveillance
Therapeutic Devices
Timers
Voltage Converters
Weather Devices
WebTV
Home Audio
Home Theater Projectors
Home Theater in a Box
Radios: CB, Ham & Shortwave
Satellite Radio
Satellite TV
Telephones & Pagers
Televisions
VCRs
Vintage Electronics
) 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.
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).
Hello world
The following program, when run, will clear the standard output and print the phrase "HELLO WORLD!":
Z80 Series
68000 Series
Add integers and display sum
The following program will add the integers from 1 to 20 inclusive, and store the result to variable "A". It will then display A's contents:
Note that the following routine takes less RAM, and uses one fewer variable, for the same task (storing the sum of the integers from 1 to 20 inclusive to variable A and displaying the result:
Await keypress, display keycode
This program will loop indefinitely, waiting for a key to be pressed and informing the user of its keycode. Note that the "On" key will stop execution of a TI-BASIC program, and therefore does not have a keycode. (Some assembly subroutines can be called from a TI-BASIC program to clear this interrupt.)
Read more at Wikipedia.org
|