Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 243

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 246

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 243

Notice: Trying to access array offset on value of type bool in /mnt/cpcwiki-httpdocs/includes/libs/IPSet.php on line 246
Changes - CPCWiki

Changes

Technical information about Locomotive BASIC

364 bytes added, 09:03, 24 August 2025
/* 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,636
edits