BBC BASIC for SDL version 1.31a released

In mid-November, Richard released version 1.26a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, MacOS, Linux, Raspberry Pi OS, Android, iOS and in-browser. The changes in this version are as follows:

1. BASIC Interpreter / Run Time Engine

Changed the behaviour of VDU 127 (DEL) in VDU 5 mode to correspond to that of Acorn systems, i.e. the background GCOL mode is ignored.

Fixed a bug causing VDU 127 not to work correctly in VDU 5 mode if the text direction has been changed.

Fixed a bug (in ARM and 64-bit editions only) whereby characters plotted in VDU 5 mode could not be read back using GET(x,y).

2. IDEs and Utilities

Fixed a minor bug in SDLIDE.bbc which could cause incorrect indentation of lines added at the end of a program.

Modified compiler.bbc so that message boxes still work when path names are very long.

Modified compiler.bbc (on Windows only) to be tolerant of spaces in the path to BBCSDL.

3. Libraries

Added gfxlib.bbc which partially emulates David Williams's GFXLIB2 library for BB4W; see gfxlib_docs.pdf for a detailed description.

Added audiolib to support playing music (including MP3) and sound effects.

Modified dlglib so that it works correctly if @ox% or @oy% is non-zero, or the graphics ORIGIN has been moved.

4. Example Programs

Added cowboy.bbc in examples/games; this is David Williams's GFXLIB2 demo for BB4W, converted to use the new gfxlib library.

Added metronome.bbc in examples/sounds (this is also compatible with BBC BASIC for Windows)

Modified lemmings.bbc and tower.bbc to use the new audiolib library.

This version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspberry Pi, Android, iOS, 64-bit Linux and in-browser editions, currently).

Comments

  • I've released version 1.27a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, Mac OS, Linux, Raspberry Pi OS, Android, iOS and in-browser. The changes in this version are as follows:
    1. BASIC Interpreter / Run Time Engine

      Treat hexdecimal pointers in *LOAD commands etc. as unsigned numbers.

      Disable ON ERROR when in AUTO line-entry mode (64-bit and ARM editions only).

    2. IDEs and Utilities

      The compiler utility can now build a 'web application' bundle to deploy online using https://wasm.bbcbasic.co.uk/bbcsdl.html?app=<URL of web bundle>.

      Fixed a race-hazard in the debugger which could cause a rare crash during variable listing.

    3. Libraries

      Updated gfxlib and gfxlib_docs.pdf to add PROC_gfxPlotColumnListScale, PROC_gfxPlotRowListScale and FN_gfxLoadTextureSwapRGB.

      Updated audiolib to add PROC_mixCancel (truncates a sound effect) and PROC_mixSoundLevel (plays a sound effect at a specified level).

    4. Example Programs

      Added candle.bbc (in examples/graphics), an animation of a burning candle, adapted from a program by David Williams.

      Added compiler directives to a few examples so they run as web applications without modification.

    This version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspberry Pi, Android, iOS, 64-bit Linux and in-browser editions, currently).

  • Here's the output from candle.bbc:
  • I have released version 1.28a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, Mac OS, Linux, Raspberry Pi OS, Android, iOS and in-browser. The changes in this version are as follows:
    1. BASIC Interpreter / Run Time Engine

      Updated SDL2_ttf to version 2.0.18 (Windows edition only); note that this changes the appearance of some fonts, especially in small sizes.

      ARM and 64-bit versions brought into line with 32-bit x86 versions in a couple of minor respects.

    2. IDEs and Utilities

      Updated about.bbc to be compatible with SDL2_ttf version 2.0.18 or later (in reporting the version of FreeType).

    3. Libraries

      Updated imglib.bbc to support displaying animated GIFs (there is an updated BB4W library too).

      Updated gfxlib.bbc to include PROC_gfxGaussianBlur3x3 (also updated gfxlib_docs.pdf).

      Updated dlglib.bbc to behave better with SDL2_ttf version 2.0.18 or later.

    4. Example Programs

      Added anigif.bbc (in examples/graphics) to illustrate displaying an animated GIF.

      Modified telstar.bbc so that F11 sends a carriage-return character to the line.

    This version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspberry Pi, Android, iOS, 64-bit Linux and in-browser editions, currently).

  • Soruk
    edited February 10
    I'm curious about the use case for sending an actual CR to a Viewdata server - from my extremely limited experience (Telstar and CCl4) the accept # to function as an analogue to Enter/Return (in my client I even send # when you hit Enter).

    (Also, reposted the announce to the other site.)
  • Soruk wrote: »
    I'm curious about the use case for sending an actual CR to a Viewdata server

    As I understand it, from the user who requested the addition, it's not for use with a Viewdata server but with an IP modem (i.e. to connect to a telephone line, not the internet). This is what he said:

    "hitting enter produces a # which doesn't work well when trying to dial out since a modem requires ASCII 13 to enter the line. In CommStar in viewdata mode, pressing CTRL M will send ASCII 13 whereas enter will send #".
  • I have released version 1.29a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, Mac OS, Linux, Raspberry Pi OS, Android, iOS and in-browser. The changes in this version are as follows:
    1. BASIC Interpreter / Run Time Engine

      Added support for Serial I/O (e.g. EXT# returning the number of bytes waiting in a serial input buffer).

      Fixed a minor graphics bug which could cause fill operations to fail if an odd-value relative coordinate was supplied.

    2. IDEs and Utilities

      Updated searchin.bbc to avoid it being confused by an Acorn-format tokenised program.

      Improved error reporting if SDLIDE.bbc fails to create a temporary file.

    3. Libraries

      Optimised aagfxlib by calling SDL2 API functions by address rather than by name.

    4. Example Programs

      Added conway.bbc (in examples/general), a version of Conway's Game of Life in which the calculations are performed by the GPU.

      Added video.bbc (in examples/general) as a proof-of-principle demonstration of playing a video, albeit uncompressed and with no sound.
    Important note for Android users: the Code Signing Certificate has been updated, and because the company from which I have previously obtained them has closed down the new certificate has a different ID. You will need to uninstall BBC BASIC before you can install v1.29a; take care to backup (e.g. to a PC) anything you need in @usr$.

    This version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspberry Pi, Android, iOS, 64-bit Linux and in-browser editions, currently).
  • You may have noticed a minor regression in version 1.29a: the appearance of radiobuttons was accidentally affected. Although only cosmetic, if you want to fix this defect the files at the website have been updated (the dlglib library has been changed); simply download and install the new version.
  • I have released version 1.30a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, Mac OS, Linux, Raspberry Pi OS, Android, iOS and in-browser. The changes in this version are as follows:
    1. BASIC Interpreter / Run Time Engine

      OS Filing System errors now update the SDL error string, for the convenience of BASIC programs.

      iOS edition only: Reduced size of the back button on iPads.

      iOS edition only: Reinstated the ability to create a home screen icon to run a specific BASIC program (which stopped working at some point).

    2. IDEs and Utilities

      The Compile utility no longer quits if an embedded file cannot be found.

      Touch IDE: The background may now be selected from a choice of eight colours.

      Android and iOS only: added the ability to disable or enable fullscreen mode.

    3. Libraries

      Updated gfxlib to accept negative inter-character spacing values (@vdu.w.d&).

    4. Example Programs

      Added bugs.bbc (in examples/games), written by David Williams in 2006 based on the Flash game Ladybug Sumo.

      Added pageturn.bbc (in examples/graphics) which is a BBCSDL conversion of the old BB4W demo.
    This version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspberry Pi, Android, iOS, 64-bit Linux and in-browser editions, currently).
  • Soruk
    edited May 24
    Hi Richard,

    Just a heads-up for your Telstar client, I have moved the server to a new host - teletext.matrixnetwork.co.uk:6502 - the old address still works for the time being as I am running a forwarder on the port so nothing is broken for now.
  • I have released version 1.31a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, Mac OS, Linux, Raspberry Pi OS, Android, iOS and in-browser. The changes in this version are as follows:
    1. BASIC Interpreter / Run Time Engine

      Updated the bundled stb_image library to version 2.2.7.

      (Windows and MacOS editions only) Updated the bundled SDL library to version 2.0.22.

      (Windows and MacOS editions only) Updated the bundled SDL_ttf library to version 2.0.18, which includes FreeType version 2.10.4.

    2. IDEs and Utilities

      Updated compiler.bbc to allow the selection of multiple embedded files.

      Updated SDLIDE.bbc to ensure compatibility with SDL version 2.0.22.

    3. Libraries

      Extended dlglib.bbc to support multiple-selection listboxes (LBS_MULTIPLESEL or LBS_EXTENDEDSEL style).

      Extended filedlg.bbc to support the selection of multiple files.

      Updated pdflib.bbc to ensure compatibility with SDL2_ttf version 2.0.18.

    4. Example Programs

      Added pdfdemo.bbc (in examples/general) to demonstrate creating a PDF file.

      Updated the list of available videotex services in telstar.bbc.

      Fixed a minor bug in pageturn.bbc affecting the shading of the 'fold'.

    This version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspberry Pi, Android, iOS, 64-bit Linux and in-browser editions, currently).

Sign In or Register to comment.