← Back to home The book

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

Free to read · Fourth Edition (updated through BASIC-256 v2.3.1)

Cover of A guide to BASIC256

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".

AuthorJames M. Reneau, Ph.D.
Michel Vilain
EditionFourth Edition (updated through BASIC-256 v2.3.1)
Read onlineFree, full book or chapter by chapter

Table of contents

  1. Front Material — Cover and Foreword
  2. Chapter 1 — Meeting BASIC-256: Say Hello
  3. Chapter 2 — Drawing Basic Shapes
  4. Chapter 3 — Variables
  5. Chapter 4 — Sound and Music
  6. Chapter 5 — Thinking Like a Programmer
  7. Chapter 6 — Your Program Asks for Your Input
  8. Chapter 7 — Decisions, Decisions, Decisions
  9. Chapter 8 — Looping and Counting: Do It Again and Again
  10. Chapter 9 — Custom Graphics: Creating Your Own Shapes
  11. Chapter 10 — Functions and Subroutines: Reusing Code
  12. Chapter 11 — Mouse Control: Moving Things Around
  13. Chapter 12 — Keyboard Control: Using the Keyboard to Do Things
  14. Chapter 13 — Images, Sounds, and Sprites
  15. Chapter 14 — Printing
  16. Chapter 15 — Arrays: Collections of Information
  17. Chapter 16 — Mathematics: More Fun with Numbers
  18. Chapter 17 — Working with Strings
  19. Chapter 18 — Files: Storing Information for Later
  20. Chapter 19 — Stacks, Queues, Lists, and Sorting
  21. Chapter 20 — Runtime Error Trapping
  22. Chapter 21 — Database Programming
  23. Chapter 22 — Connecting with the Outside
  24. Chapter 23 — Advanced Sound and Music
  25. Chapter 24 — Advanced Mathematics: Vectors and Matrices
  26. Chapter 25 — Advanced Text Output
  27. Chapter 26 — Modules
  28. Chapter 27 — Advanced Noise
  29. Appendix A — The BASIC-256 IDE
  30. Appendix B — BASIC-256 on the Command Line
  31. 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.