65C816 XL OS Reaches Revision 2.49
On 7 October 2026, drac030 (Konrad Kokoszkiewicz, author of the ELSA assembler) posted revision 2.49 of his 65C816 XL/XE OS. This is a replacement operating-system ROM for Atari XL and XE computers fitted with a WDC 65C816 CPU, the 16-bit successor to the 6502 used in accelerators such as Rapidus and Antonia. The OS dates back to at least 2006. Since 2019 new revisions have appeared roughly once a year, and the download page now goes back to revision 2.36 of 2015.
Why a new OS?
The 65C816 starts up in a 6502 emulation mode, so a stock Atari runs normally with one fitted. To use its native mode (16-bit registers, a stack anywhere in the first 64 KB, and a 24-bit address bus reaching up to 16 MB) the computer needs a ROM that knows about it. The standard XL OS revision B has nothing sensible at the addresses where the 65C816 looks for its native-mode interrupt vectors, so enabling native mode with interrupts on simply crashes. Instead of patching the Atari OS, drac030 rewrote it as a new release in 65C816 code. It has native interrupt vectors and new ones, a COP-based system-call mechanism that works from code above $FFFF, a kernel memory allocator (kmalloc/kfree) for the RAM past 64 KB, new SIO and CIO functions, and fixes for long-standing XL OS bugs.
To the user it behaves like the XL OS, with a few changes to the console keys at power-up:
- OPTION enables the built-in BASIC (the reverse of the XL OS).
- SELECT held during RESET forces a cold start.
- START opens a boot menu for choosing the boot drive. It reports whether each drive is a US Doubler-type ("ULTRA"), an XF551-compatible, a PBI hard-disk partition or a standard drive, and T toggles turbo SIO. Cassette boot is gone.
It also fixes the old clash between the F1–F4 key handling meant for the 1200XL's LEDs and 130XE-style memory banking, which share the PORTB register.
What changed recently
- 2.40 (May 2019) and 2.41 (January 2020): allocator fixes; dropped the slow 32/48/80-column NEWCOL support, making 40-column output about 6% faster; SpartaDOS 3.3 boots again. 2.41 also added a warning screen for people who flash the OS into an Ultimate 1MB slot and then boot a 6502, because the OS needs a 65C816.
- 2.42–2.43 (2021): asks the Rapidus BIOS how much high RAM there is; a safer COP handler;
kmallocgains a "top of RAM" attribute, a garbage collector that merges free blocks, and a call that returns the largest free block (with a newKMSCAN.COMtool). - 2.44 (May 2023): a bank-sizing bug fix, the SIO "comfort noise" volume now set through
iosnden, and a change that requires an Altirra version with a matching emulator fix. - 2.45 (January 2024): better handling of the key-click flag after an AtariAge discussion, and COP handler fixes.
- 2.46 (July 2024): a workaround for a bug in Multi I/O, faster CIO entry and exit, and two ROM builds: "A" with the Atari floating-point package and "F" with Charles Marslett's fast FP.
- 2.47 (April 2025): ACX loader fixes, an atomic update of interrupt vectors in
SETVBV, and handling for zero-page mirroring at $010000 on machines other than Rapidus. - 2.48 (December 2025): adjustments for Antonia II hardware in the reset routine and the E:/S: handlers, plus a
kmalloc()attribute fix. - 2.49 (October 2026): small size and speed optimisations throughout (COP handler, DSKINV, the VBI), and a fix so the start-up delay loop runs only at power-up, not on warm start.
Where to get it
All revisions are on drac030's site (drac030.atari8.info, English pages under 65C816 XL OS), with the technical specification and a compatibility list. That list, made with version 2.10, shows most DOSes and tools running fine, while a few programs that make "illegal" OS calls or read the keyboard table directly do not. The OS only works on a 65C816 machine. In Altirra, select the 65C816 CPU and add the ROM as the XL/XE OS firmware. The same site also hosts U-BASIC, a copy of Atari BASIC moved under the OS ROM that gives up to 46 KB free for programs on any 64 KB XL/XE, and the 65C816 MultiBASIC interpreter.
Credits
- drac030.atari8.info — 65C816 XL OS change log (en-zmiany.php) — drac030.krap.pl
- drac030.atari8.info — The 65C816 XL/XE OS specification (en-specyfikacja.php) — drac030.krap.pl
- drac030.atari8.info — OS compatibility list (en-kompatybilnosc.php) — drac030.krap.pl
- drac030.atari8.info — Download bay (en-pliki.php) — drac030.krap.pl
- drac030.atari8.info — U-BASIC and MultiBASIC pages — drac030.krap.pl
