Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
documentations:basic_internals [2015/03/15 10:18] – [Token list] pulkomandydocumentations: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 differencesThe 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 "address of next line" is the absolute address on MO5, but on TO8 it is the length of the line. FIXME Which scheme is used in the other versions of the BASIC?
  
 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.
documentations/basic_internals.txt · Last modified: 2015/03/15 10:21 by pulkomandy
CC0 1.0 Universal
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0