Changes

Technical information about Locomotive BASIC

629 bytes added, 10:19, 6 December 2012
/* BASIC tokens */
|-
| &1d
| 16-bit BASIC program line memory address pointer(see notes)
|-
| &1e
e.g. "|DIR". An RSX is encoded in a BASIC program using the following structure:
 
#*When a BASIC program is in memory, the BASIC ROM can replace "16-bit BASIC program line number" tokens with "16-bit BASIC program line memory address pointer".
 
When a program is loaded or saved, there will only be "16-bit BASIC program line number" tokens followed by a 16-bit number of the line.
 
When a program is running, BASIC will replace the "16-bit BASIC program line number" with the "16-bit BASIC program line memory address pointer" token, and replace the 16-bit line number with the memory address of the start of that line.
 
It does this to avoid having to lookup the address of the line each time.
 
{| border="1"
2,562
edits