Raspberry BASIC
Raspberry BASIC => Interpreters => BBC BASIC => Topic started by: Richard Russell on March 17, 2025, 05:44:49 PM
-
I have released version 1.41a 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:
- Environment
Updated the version of SDL to SDL 2.32.0 (except the Linux and in-browser editions).
- BASIC Interpreter / Run Time Engine
Added array slicing, using the syntax: array(first TO [last]) or array(row, first TO [last]).
Compound assignment and array arithmetic now also accept the exponentiation operator '^'.
In the default *HEX32 mode, PRINT~ and STR$~ report an error if the value cannot be expressed as 32-bit hex.
- IDEs and Utilities
In compiler.bbc, improved the manual selection of multiple embedded files from a sub-directory.
In compiler.bbc, a REM!Resource directive, if present, embeds the resource into a Windows executable.
Added versinfo.bbc utility to create a VERSIONINFO resource suitable for embedding in a Windows executable.
- Libraries
Updated gfxlib.bbc to add PROC_gfxInvert, PROC_gfxPlotScaleDissolve and PROC_gfxPlotScaleAlphaBlend.
Updated arraylib.bbc to support creating alias arrays from slices of 1D and 2D arrays.
- Example Programs
Added filters.bbc (in examples/general) and soccerball.bbc (in examples/graphics).
Added spinmaze.bbc (in examples/physics) and bauble.bbc & belier.bbc (in examples/sounds).
This version may be downloaded, for all the supported platforms, from the usual location (https://www.bbcbasic.co.uk/bbcsdl/) (the Android and iOS editions should be installed from the appropriate App Store). The GitHub repository (https://github.com/rtrussell/BBCSDL) has also been updated.