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
directories. For example:
Code: Select all
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.