Changes

Technical information about Locomotive BASIC

67 bytes removed, 15:48, 14 March 2007
/* BASIC tokens */
Notes:
* The &ff code is used as a prefix for more keywords. See the table below for the list of keywords using this prefix. * &e2,&e8 and &e9 are not used * &7c ("|") is a character prefix used to identify a RSX command.
e.g. "|DIR".
An RSX is encoded in a BASIC program using the following structure:
Offset Count Description
1 1 8-bit byte offset to tokens following RSX name.
2 x RSX name. (Last character of name has bit 7 set to "1", all other characters have bit 7 set to "0")
* This token identifies a integer (16-bit) number. The two bytes following this token is the number, stored low byte then high byte. e.g. &19,&2d,&00 represents the integer number "&002d"="45". * This token (&0B) is changed at run-time to &0D * This token identifies a integer variable. 02,00,00,var name offset to number in program setup when program RUN. The variable name is stored directly, with bit 7 of the last character set. * This token identifies a string variable. offset to string in program string stored AS IS with quotes around it. * This token identifies a floating point number. Immediatly following the token are 5 bytes which define the number.
Offset Count Description
NOTES:
* These codes are prefixed by &FF. e.g. The keyword "ABS" is stored as the following sequence:
&FF,&00
* Codes &1e...&3f inclusive are not used * Codes &4a...&6f inclusive are not used * Codes &80...&ff inclusive are not used
== Floating Point data definition ==
12,273
edits