TI-Basic Z80 Programming/Errors

From Wikibooks, open books for an open world
< TI-Basic Z80 Programming
Jump to navigation Jump to search

The basic interpreter scans a line of code before executing it, so that the calculator won't freeze or worse.. If it encounters an error, it will stop executing the code, and tell you that an error occurred. It even tells you what kind of error it was, and in some cases there is an option that will take you to the error.

In TI-basic, error messages occur for a number of reasons.

1. Incorrect code 2. Not enough memory 3. Overflow 4. Non-real answers (negative root)

INCORRECT CODE The calculator says




Option one quits from the program and returns you to the home screen.

Option two is more interesting; It takes you to the line of the program where the error occurred, So you can go fix it!

Previous: Screens
Next: Tips, Tricks and Optimizations
Table of Contents: TI-Basic Z80 Programming