I've built an experimental
in-browser (WebAssembly) edition of
BBC BASIC for SDL 2.0 which will currently run in
Microsoft Edge and
Google Chrome (but not Firefox). It can be run directly from
this link.
There are a number of demo programs included which can be found in the
examples/games,
examples/general,
examples/graphics and
examples/sounds directories. For example:
*cd examples/graphics
CHAIN "bounce"
There are some significant limitations, the most serious of which is probably that the
GCOL 'logical plotting' modes (AND, OR, EOR) don't work; this is because
webgl does not support these operations. Another limitation is that the
SYS statement is not supported. It's also quite slow!
Currently there is no way to load in your own program(s), that needs to be thought about. Also, the local filesystem provided by Emscripten is
volatile and anything saved there will be lost when you close the browser.