QuickOS: A Configurable Replacement OS for XL/XE Games
In November 2022, Zolaerla described QuickOS on AtariAge: a replacement operating system meant to be bundled with a game on XL/XE computers. Instead of using the Atari OS, a game loads QuickOS into the RAM underneath the OS ROM area at boot, and from then on QuickOS handles the game's I/O, text and memory banking.
How it came about
Zolaerla had a long background in x86 (and some 68000) assembly but had only started serious Atari 8-bit work that summer. While updating an old favourite game, he broke its custom SIO code. Rather than go back to the old version, he decided to write his own small game OS, hence the name. It turned out to be anything but quick: working out SIO directly on the hardware alone took a month.
Design
- Written in CA65, with each part in its own scope. The build is assembled per game, so you include only the components you need.
- Lives at
$D800–$FFE0and uses only 39 bytes of zero page and no other RAM, keeping its data internally, so$0200–$CFFFis completely free for the game. - High-speed SIO up to divisor 0 (about 126 kbaud), with a simple "Loading" progress bar during very fast transfers.
- An optional boot screen that shows hardware detection as it runs. In the author's screenshots it identified a 65C816, an Ultimate 1MB and three drives.
- Text output, strings, a text-output scripting system, keyboard handling and RAM banking. Graphics and sound are deliberately left to the game.
The QuickScreenScript system shows its style: the program loads a pointer to a script with a macro and calls one routine. The script then mixes literal text, 32-bit numbers, calls to other routines, cursor positioning, centring and highlighted text with {…}.
Questions from the community
Forum members asked whether it could run from ROM, for example in an Ultimate 1MB OS slot. flashjazzcat explained that this would need a 16 KB image with an OS checksum. Zolaerla replied that it isn't meant to be a general ROM OS: about a third of the code is initialisation that is thrown away after boot, and each game gets its own configuration. He also talked about adding a cartridge loader. Others asked for clear documentation of the advantages and differences, and Zolaerla started publishing component docs (kernel, QuickBank, QuickScreen, QuickString) on his site.
Status
At announcement QuickOS was in beta, and the source was to be published once testing was complete. It is aimed at larger, disk-heavy games where fast loading and a free memory map matter most.
Credits
- AtariAge — QuickOS - A Personal Project for XL/XE Computers — AtariAge forum members
