Documentation for MockBasic version 1

Line labels:

A line label can either be an alphanumeric string (first character must be alphabetic) followed by a colon, or a number. Labels used by the library modules begin with the underline ('_') character.

Variables:

A variable name is an alphanumeric string (first character must be alphabetic). Variables used by the library modules begin with the underline ('_') character. All vaues are long (32-bit) integers.

Values:

Values are long (32-bit) signed integers, and may either be specified in decimal, hexadecimal (with a '$' character as a prefix), or as up to four ASCII characters (in single quotes). Quoted strings evaluate to their address in the program.

Statements:

Statements may be separated on the same line by the ':' character. Statements may not be split between lines.

Functions:

Operators:

Comparisons:

The comparisons return zero if false, and -1 if true.