Changes

Jump to: navigation, search

Technical information about Locomotive BASIC

3 bytes added, 18:11, 26 December 2022
/* BASIC tokens */ typo
| INPUT
|-
| &a4
| KEY
|-
|-
| &b5
| ON SQ
|-
| &b6
*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 an RSX command. e.g. "|DIR".
An RSX is encoded in a BASIC program using the following structure:
|}
*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. &191a,&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.
953
edits