Author Topic: Technical information about Locomotive BASIC -- some issues in the wiki page  (Read 318 times)

0 Members and 1 Guest are viewing this topic.

Offline krusty_benediction

  • CPC664
  • ***
  • Posts: 134
  • Country: fr
  • Liked: 100
  • Likes Given: 35
Hello,
I have to programmatically generate basic tokens, and the page http://www.cpcwiki.eu/index.php/Technical_information_about_Locomotive_BASIC provides interesting information about them.
However, there are some errors and unclear information.Is it possible that someone who masters these points make a review and update the page ?
For example:- there are  items saying they refer to a token without explictely saying which token is it about (after the RSX section for example)
- This sentence "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"." is contradictory with the table that states that 0x19 represents a 8bit value
- The presentation of the variables is not consistent depending on their type (but I think it is more a layout issue, the content seems to be present)

Thanks.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 14.941
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 2916
  • Likes Given: 5079

Offline Docent

  • CPC6128
  • ****
  • Posts: 162
  • Country: pl
  • Liked: 104
  • Likes Given: 0
Hello,
I have to programmatically generate basic tokens, and the page http://www.cpcwiki.eu/index.php/Technical_information_about_Locomotive_BASIC provides interesting information about them.
However, there are some errors and unclear information.Is it possible that someone who masters these points make a review and update the page ?
For example:- there are  items saying they refer to a token without explictely saying which token is it about (after the RSX section for example)
- This sentence "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"." is contradictory with the table that states that 0x19 represents a 8bit value
Looking at basic 1.1 source code, it seems that the example should contain &1a for 16 bit values.
btw: on the wiki,  token &b5 should be ON SQ and not SQ, as it is prefixed opcode &17.