# TI-Basic Z80 Programming

This book covers the Z80 processor's version of TI-BASIC.

## Overview

TI-BASIC is a simple programming language used on Texas Instruments (TI) graphing calculators. The language is quite simple, and integrates many normal graphing calculator commands (such as storing variables or graphing) into its code.

TI-BASIC is very easy to program, especially when compared to Assembly, which is the other main language that can be used to program TI graphing calculators. Also, programs written in TI-BASIC can have small filesizes, since common functions can be programmed with just one character (1-2 bytes), such as `If`

or `Menu(`

. However, this makes execution of TI-BASIC programs very slow. because each line of code must be read and parsed before execution. Despite the crawling speed of TI-BASIC, it's appropriate for many simple programs.

## Versions of TI-BASIC

There are two main versions of TI-BASIC in use today:

- The TI-BASIC that comes with the TI-89, TI 89 Titanium, TI-92, TI-92 Plus and Voyage 200 calculators. This is the more powerful version of TI-BASIC.

- The TI-BASIC that comes with the TI-83, TI-83+, TI-83+ Silver Edition, TI-84+ and TI-84+ Silver Edition calculators. This is a less powerful version of TI-BASIC, but is still fairly versatile.

Please note that within these two versions of TI-BASIC there are slight variations.

## Table of Contents

This table of contents arranges the sections in the best order possible for those who are trying to learn the language. However, if you are already familiar with TI-BASIC, you may decide to skip certain sections.

- Introduction
- Necessary Items
- Hello, World!
- Basic Variables — Numbers, Strings, and Lists
- Output
- Input
- Program Basics
- Advanced Variables — Characters, Equations, Matrices, Pictures, and Graph Databases
- Criteria Based Instructions — If, Then, Else, While & End
- getKey
- Menus
- Other CTL and I/O Commands
- Screens
- Error Messages
- Tips, Tricks and Optimizations
- Advanced Programming
- Programming Games
- Mathematical Finance Programming
- Links
- Appendix A: List of Commands
- Appendix B: Catalog

## External Links

### Learning and Programming TI-BASIC

Here are the manuals that come with TI calculators from the Texas Instruments website, which can be used to learn TI-BASIC.

- TI 83 (See Chapter 16)
- TI 83 Plus (See Chapter 16)
- TI 83 Plus Silver Edition (See Chapter 16)
- TI 84 Plus (See Chapter 16)
- TI 84 Plus Silver Edition (See Chapter 16)
- TI 89 (See Chapter 17)
- TI 89 Titanium (See Chapter 18)
- TI 92 Plus (See Chapter 17)
- Voyage 200 (See Chapter 18)