CP/M-65 Gets Altirra BASIC and Boots on the Atari
In mid-August 2023, David Given (hjalfi on AtariAge) announced that his CP/M-65 operating system now includes a port of Altirra BASIC. CP/M-65 is an open-source system in the spirit of Digital Research's CP/M, but for 6502 computers, and it runs on the Atari 8-bit among others. Altirra BASIC is the Atari BASIC-compatible interpreter Avery Lee wrote for the Altirra emulator.
What was done
Altirra BASIC was written for the Atari's OS, so the port needed extensive changes to run in CP/M-65's very different environment. The Atari-specific features are gone: no graphics, sound or other hardware commands. What remains is a working BASIC interpreter that runs on every system CP/M-65 supports. At the time that meant the Commodore 64, PET, BBC Micro, Apple II, Oric Atmos and the Atari 8-bit machines.
Why Altirra BASIC? The author said he was glad to find an open-source 6502 BASIC. He had first planned to use Microsoft BASIC, but the source code then available was leaked and therefore unusable for an open project. He added, gently, that Atari BASIC's dialect is "a bit quirky". (Microsoft officially open-sourced its 6502 BASIC in 2025.)
Quick fixes and requests
Vitoco reported almost at once that the latest CP/M-65 release wouldn't boot on his 800XL, or in Altirra, and kept reading sector 19. The author called it a silly mistake, fixed it in a commit and rebuilt the release binaries.
He also asked for other Atari languages that could be ported, as long as the source code is available under a proper open-source licence. FastBasic was the obvious suggestion, and he said he liked it and wanted to look at it more closely later. Another member pointed to existing CP/M IRC clients as candidates for the platform.
Why it matters
CP/M-65 gives Atari owners a portable, file-oriented system with the same tools as other 6502 machines. A BASIC in the base system makes it much more useful for everyday tinkering. It also shows the value of open-source Atari projects: Altirra BASIC's licence let it run on machines its author never targeted.
Getting it
Source and release disk images are at github.com/davidgiven/cpm65. Use the Atari 800 build in Altirra or write it to a real disk.
Credits
- Picture: CP/M-65 running on an Atari 800XL. — Screenshot from the CP/M-65 GitHub repository by David Given
- AtariAge — CP/M-65 now has Altirra BASIC (and runs on the Atari) — AtariAge forum members
- AtariAge — Microsoft's 6502 BASIC is now Open Source — AtariAge forum members
