contents

foreword
preface
acknowledgments
about this book

Part 1 Getting started with programming

Chapter 1 Diving into calculator programming
Your calculator: the pocket computer you already own
Hello World: your first program
Math programming: a quadratic solver
Game programming: a guessing game
Summary
Chapter 2 Communication: basic input and output
Getting to know the program editor and homescreen
Output: displaying text
Input from users: the Prompt and Input commands
Troubleshooting tips
Summary
Chapter 3 Conditionals and Boolean logic
Introduction to comparisons
Conditional statements
Boolean logic
Summary
Chapter 4 Control structures
Labels and Goto
Menus
For, While, and Repeat
Subprograms and termination
Summary
Chapter 5 Theory interlude: problem solving and debugging
Introduction: idea to program
Planning a program’s structure
Headache-free coding and testing
Understanding TI-BASIC errors
Tracing malfunctioning code
Summary

Part 2 Becoming a TI-BASIC master

Chapter 6 Advanced input and events
Event loop concepts
getKey
The Mouse and Cheese game
getKey odds and ends
Summary
Chapter 7 Pixels and the graphscreen
Introducing the graphscreen
Drawing text: first steps on the graphscreen
Playing with pixels
A painting program
Summary
Chapter 8 Graphs, shapes, and points
Another coordinate system: points versus pixels
Graphing from programs
Drawing with points
Lines and shapes
Working with pictures
Summary
Chapter 9 Manipulating numbers and data types
Using strings
Lists and matrices
Working with integers and complex numbers
Revisiting randomness
Fun with data types: a single-screen RPG
Summary

Part 3 Advanced concepts; what’s next

Chapter 10 Optimizing TI-BASIC programs
Implicit conditionals
Exploiting Ans
Compressing numbers and choices
Space-saving tips and tricks
Summary
Chapter 11 Using hybrid TI-BASIC libraries
Introducing hybrid TI-BASIC
Working with hybrid sprites
Tilemapping and scrolling
Finding and executing programs
Other hybrid tools
Summary
Chapter 12 Introducing z80 assembly
What is assembly?
“Hello, World”
Bases and registers
z80 math with registers
Functions and control flow
Summary
Chapter 13 Now what? Expanding your programming horizons
Taking your calculator programming further
Expanding your programming horizons
Working with hardware
Final thoughts

appendix A Review: using your calculator
appendix B TI-BASIC command reference
appendix C Resource list
                   index