Changes

Jump to: navigation, search

Technical information about Locomotive BASIC

13 bytes removed, 16:50, 18 September 2012
/* Structure of a BASIC program */
<br> Notes:
#*This 16-bit value has two functions: #**if "0" it signals the end of the BASIC program. In this case, there is no furthur BASIC program lines or data. #**, otherwise, this value defines the length of the tokenised BASIC program line in bytes, and includes the 2 bytes defining this value, the 2 bytes defining the program line number, and the end of line marker. This number is stored in little endian notation with low byte followed by high byte. #*This 16-bit value defines the line number and exists if the length of line data in bytes is not "0". A line number is a integer number in the range 1-65535. This number is stored in little endian notation with low byte followed by high byte. #*This data defines the tokenised BASIC program line and exists if the length of line data in bytes is not "0". The length is dependant on the BASIC program line contents. #*This value defines the end of the tokenised BASIC line data and exists if the length of line data in bytes is not "0". The BASIC interpreter looks for this token during the processing of this line, and if found, will stop execution and continue to the next line.
== BASIC tokens ==
20
edits