Quick reference guide to BASIC 1.0


Table of Contents

Variable types
Operators
Logical operator truth table
System commands
BASIC language statements
String functions
Numeric functions
Cassette recorder control statements
Graphics statements
Sound generation statements
Lightpen statements

BASIC 1.0 is the standard BASIC language for Thomson computers (MO5, TO7, etc.), which is the reference for the entire range. This is an implementation of Microsoft BASIC (BASIC-69). On the MO5, the instruction set is reduced and the double precision is not implemented, so that the interpreter fits in only 12 KB of ROM, instead of 16 KB on the TO7.

Variable types

Type Name Range
Integer AB% -32768 to +32767
Real AB +/- 9.99999 E +38
String AB$ 0 to 255 characters

Where A must be a letter, B and following (up to 255) characters are optional and may be a letter or digit. Only the first 15 characters are significant.