Console Mode editions of BBC BASIC

New releases of BB4W and BBCSDL, and other updates, will be announced here
RichardRussell

Console Mode editions of BBC BASIC

Post by RichardRussell »

Please see my announcement at Stardot about the above topic. With the imminent closure of this forum it doesn't seem sensible to begin a thread here.

RichardRussell

Re: Console Mode editions of BBC BASIC

Post by RichardRussell »

I have updated the Console Mode editions of BBC BASIC to version 0.25. The main changes in this version are:
  • Fixed a bug which caused the expected 'Type mismatch' error not to be reported on assigning a string to a numeric variable!
  • Minor changes to the actions of the Esc key and on reporting an untrapped error, to improve consistency with other versions of BBC BASIC.
  • Added some libraries in the lib/ directory (arraylib, classlib, datelib, fnusing, sortlib, stringlib, utf8lib, xmllib).
Version 0.25 may be downloaded from the usual place:

RichardRussell

Re: Console Mode editions of BBC BASIC

Post by RichardRussell »

I have updated the Console Mode editions of BBC BASIC to version 0.26, principally to bring them into line with the latest release of BBC BASIC for SDL 2.0. The main changes in this version are:
  • File pointers and lengths (PTR#, EXT#) are now 64-bits on all platforms.
  • Added the SYS function to return the entry point of an API, e.g. `memcpy` = SYS("memcpy").
  • Added the PTR()= statement to set the pointer of an array or structure.
  • Extended the =PTR() function to return the pointer of an array or structure.
A typical use for the PTR()= statement is to set the pointer of a linked-list node:

Code: Select all

      DIM node{link, ...}
      ...
      REPEAT
        PTR(node{}) = node.link : REM traverse linked-list
      UNTIL node.link = 0
Version 0.26 may be downloaded as follows:

RichardRussell

Re: Console Mode editions of BBC BASIC

Post by RichardRussell »

I have updated the Console Mode editions of BBC BASIC to version 0.28, to fix a couple of bugs:
  • ON ... PROC did not work correctly and could report a Syntax error even with valid code.
  • ON ERROR LOCAL could, in rare circumstances, misbehave if used in a nested function.
Version 0.28 may be downloaded as follows:

RichardRussell

Re: Console Mode editions of BBC BASIC

Post by RichardRussell »

I have updated the Console Mode editions to v0.29, details at the website.