Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
documentations:basic_internals [2015/03/15 10:18] – [Token list] pulkomandy | documentations:basic_internals [2015/03/15 10:21] (current) – pulkomandy | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASIC file format ====== | ====== BASIC file format ====== | ||
- | Note: the following applies to the MO5 BASIC 1.0. It wasn't checked how much of this applies to the other BASICs. | + | The format is similar for all versions of the BASIC but there are some differences. The most obvious one is that the list of tokens was expanded, but there are other changes as well. |
===== Header ===== | ===== Header ===== | ||
Line 21: | Line 21: | ||
The end of the listing is marked with a NULL next line pointer. | The end of the listing is marked with a NULL next line pointer. | ||
+ | |||
+ | The " | ||
The line data is a mix of tokens and ASCII characters. The tokens are used to encode all the keywords and functions, but everything else (numbers, strings, comments) is stored in ASCII. | The line data is a mix of tokens and ASCII characters. The tokens are used to encode all the keywords and functions, but everything else (numbers, strings, comments) is stored in ASCII. |