BBC BASIC, Inline Assembler and All, Ported to the Atari XL/XE

BBC BASIC v3.10 splash screen on the Atari with an owl logo

On 2 November 2025, ivop announced a port of BBC BASIC to the Atari XL/XE, a project he said he had wanted to do for years. BBC BASIC was Acorn's language for the BBC Micro. It was known especially for its built-in assembler, which lets you write 6502 code inline in a BASIC program, a big contrast with the DATA statements and USR calls Atari BASIC programmers used. He said it "would have been a game changer 40 years ago".

How fast is it?

In 1983 BBC BASIC was considered the fastest 8-bit BASIC around. ivop places it faster than Atari BASIC but slower than Turbo-BASIC XL (1985). Two design choices explain this:

  • Integer variables are 32-bit. The single-letter integer variables are fast because they don't need a lookup, but 32-bit arithmetic is slower than the 16-bit integers of some other BASICs.
  • Floating point is binary, not BCD, which the author estimates is about 20% faster than the Atari's BCD maths.

An Atari BASIC, not a BBC emulator

The port doesn't try to recreate the BBC Micro's machine-specific features. It does not emulate BBC graphics modes, their coordinate system or the VDU driver. Input and output go through the Atari's standard E: screen editor, so a logical line is limited to three screen lines, as in Atari BASIC. Some Atari-specific commands were adapted. For example, GCOL number,value sets a colour register, so GCOL 2,&34 turns the text background red. Some of the BBC's OSCLI star-commands are implemented, plus a new *APPEND that joins several segments into one .xex file. The author noted about 680 bytes were still free and was thinking about *SPOOL and *EXEC (similar to LIST/ENTER).

The README in the repository lists all the differences from the BBC version.

Related projects

To prepare for the port, ivop also published a cleaned-up BBC BASIC source tree (github.com/ivop/bbc-basic) and a way to run BBC BASIC on Linux (github.com/ivop/run-bbc-basic).

Getting it

Full source and an assembled ATR image are at github.com/ivop/atari-bbc-basic. Boot the ATR on an XL/XE or in an emulator. Since it uses the standard OS editor, it works the way Atari BASIC users expect, with BBC syntax and an assembler on top.

Credits