Changes

Jump to: navigation, search

Technical information about Locomotive BASIC

1 byte removed, 10:21, 6 December 2012
/* BASIC tokens */
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"
#*Codes &4a...&6f inclusive are not used
#*Codes &80...&ff inclusive are not used
 
#*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.
== Floating Point data definition ==
2,562
edits