A guide to BASIC256
A complete, free textbook that teaches anybody to program a computer — originally written for BASIC-256 v2.0.0.0 by James M. Reneau and now updated by Michel Vilain for v2.3.1
About the book
Alongside the language, James M. Reneau wrote a complete, free textbook — "So You Want to Learn to Program?" — a book to teach ANYBODY how to program a computer. Written originally for middle- and high-school students, it teaches programming step by step using sound, colour, shapes and text-to-speech, with full source-code examples for animations, games and applications. This fourth edition is a major update of the third edition by Michel Vilain and is now called "A guide to BASIC256".
Table of contents
- Front Material — Cover and Foreword
- Chapter 1 — Meeting BASIC-256: Say Hello
- Chapter 2 — Drawing Basic Shapes
- Chapter 3 — Variables
- Chapter 4 — Sound and Music
- Chapter 5 — Thinking Like a Programmer
- Chapter 6 — Your Program Asks for Your Input
- Chapter 7 — Decisions, Decisions, Decisions
- Chapter 8 — Looping and Counting: Do It Again and Again
- Chapter 9 — Custom Graphics: Creating Your Own Shapes
- Chapter 10 — Functions and Subroutines: Reusing Code
- Chapter 11 — Mouse Control: Moving Things Around
- Chapter 12 — Keyboard Control: Using the Keyboard to Do Things
- Chapter 13 — Images, Sounds, and Sprites
- Chapter 14 — Printing
- Chapter 15 — Arrays: Collections of Information
- Chapter 16 — Mathematics: More Fun with Numbers
- Chapter 17 — Working with Strings
- Chapter 18 — Files: Storing Information for Later
- Chapter 19 — Stacks, Queues, Lists, and Sorting
- Chapter 20 — Runtime Error Trapping
- Chapter 21 — Database Programming
- Chapter 22 — Connecting with the Outside
- Chapter 23 — Advanced Sound and Music
- Chapter 24 — Advanced Mathematics: Vectors and Matrices
- Chapter 25 — Advanced Text Output
- Chapter 26 — Modules
- Chapter 27 — Advanced Noise
- Appendix A — The BASIC-256 IDE
- Appendix B — BASIC-256 on the Command Line
- Download a .zip file of all Example programs from the book here
Book content © James M. Reneau, Ph.D. and Michel Vilain. Each link opens that part of the book as a PDF on Google Drive. For the story of the language itself, see the About page.
Ready to start?
Read the book, then write your first program right in the browser.