Changes

/* Speeding up BASIC programs */
: - Dimensioning your variables & pre-calculate
: - Avoid AND/OR/XOR in IF-THEN statements. It's faster to write IF ... THEN (statement 1).. IF ... THEN (statement 2).
: - Avoid lots of string/char operations (e.g. joining strings with +, MID$)
 
== Maximizing memory usage ==
 
To maximize memory usage in BASIC:
: - Minimize the size of your BASIC program by minimizing variable name length
: - Use 8-bit/16-bit for storing DATA where possible
: - Minimize string operations. (e.g. joining strings allocates memory for the result)
== Structure of a BASIC program ==
2,630
edits