User avatar
RichardRussell
Posts: 580
Joined: Thu Jun 21, 2012 10:48 am

Re: Introduction to BBC BASIC

Tue Sep 03, 2019 3:48 pm

I have released version 1.06a of BBC BASIC for SDL 2.0, the cross-platform programming language for Windows, MacOS, Linux, Raspbian, Android and iOS. The changes in this version are as follows:

  1. BASIC Interpreter / Run Time Engine

    Added support for antialiased 2D graphics (extending SDL2_gfx).

    Increased the maximum number of float parameters that can be passed by SYS from 6 to 8.

    Fixed a bug in the PRINT statement whereby a comma didn't unset 'hex' mode (64-bit and ARM editions).

    Modified the ARM and x86-64 assemblers so that the 'Jump out of range' error is not reported on the first pass if the destination label has been made LOCAL.

    Modified the ARM assembler so that numeric values may be used as aliases for register names (this improves compatibility with Acorn's assembler).

  2. Libraries

    Added 'aagfxlib.bbc' to support antialiased 2D graphics. This is functionally very similar to the GDIPLIB library supplied with BBC BASIC for Windows.

  3. Example Programs

    Added 'aagfxdem.bbc' (in the examples/graphics folder) to demonstrate antialiased graphics.

    Added 'knots.bbc' (in the examples/graphics folder), a Celtic Knot program by David Marples which also makes good use of antialiased graphics.

    Added 'BBSterm.bbc' (in the examples/general folder; desktop editions only) which is a terminal program for Bulletin Board Services accessed by 'telnet'.
This new version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspbian, iOS and 64-bit Linux editions, currently).

User avatar
RichardRussell
Posts: 580
Joined: Thu Jun 21, 2012 10:48 am

Re: Introduction to BBC BASIC

Wed Sep 04, 2019 9:55 am

Here's what the supplied example program aagfxdem.bbc produces, on all the supported platforms:

Image

User avatar
RichardRussell
Posts: 580
Joined: Thu Jun 21, 2012 10:48 am

Re: Introduction to BBC BASIC

Sun Oct 20, 2019 3:51 pm

Version 1.07a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, MacOS, Linux, Raspbian, Android and iOS - has been released. The changes in this version are as follows:

  1. BASIC Interpreter / Run Time Engine

    User-defined characters may be used even if *FONT is active (improving compatibility with BBC BASIC for Windows).

    Removed a workaround (for Linux only) which was supposed to fix a bug in SDL2, but didn't (and hopefully SDL will be fixed one day).

    Fixed a couple of minor bugs in the antialiased 2D graphics extension.

  2. IDEs and Utilities

    Modified the Cross Reference utility to make use of the updated Treeview library.

    The speed with which the mouse wheel scrolls SDLIDE's editing pane is controllable by adding e.g. 'wheelspeed=3' to sdlide.ini. If you prefer Mac-style 'backwards' scrolling you can specify a negative value (listboxes are unaffected however).

    The Help Topics and Tutorial menu selections in SDLIDE link to BBCSDL-specific pages at the website, allowing customisation if required.

  3. Libraries

    Modified 'dlglib.bbc' so listboxes can be scrolled by dragging the list (as well as using the scrollbar).

    Svein's Treeview library has been updated to support a vertical scroll bar.

    Modified 'aagfxlib.bbc' to support dotted and dashed (straight) lines.

  4. Example Programs

    Added 'SkyBaby.bbc' (in the examples/general folder) which is a simple Planetarium program showing positions of stars, planets etc. in the sky. Loosely based on an old BBC Micro program.

    Modified 'aagfxdem.bbc' to demonstrate a dot-dashed straight line.

    Modified 'lemmings.bbc' and 'tower.bbc' to protect against a potential (but unlikely) sound-effect crash.
This new version may be downloaded, for all the supported platforms, from the usual location. The GitHub repository has been updated (used to build the MacOS, Raspbian, iOS and 64-bit Linux editions, currently).

Please remember that if you use the Android Application Generator you should download a new APK template to ensure that any updates to the run-time engine are incorporated in your own apps.

User avatar
RichardRussell
Posts: 580
Joined: Thu Jun 21, 2012 10:48 am

Re: Introduction to BBC BASIC

Tue Oct 22, 2019 12:21 pm

Some screenshots from the 'planetarium' program featured in the recent release:
skybaby1_small.png
skybaby1_small.png (123.45 KiB) Viewed 53 times
skybaby2_small.png
skybaby2_small.png (169.35 KiB) Viewed 53 times
skybaby3.png
skybaby3.png (250.4 KiB) Viewed 53 times

Return to “Other programming languages”