65C816 CPU Upgrades: Turbo-816, Sweet 16, Antonia and Rapidus

Year
1989
Type
Upgrade
Category
16-bit CPU replacements and accelerators
Manufacturer
Various (DataQue Software; Fine Tooned Engineering; modern Polish designs)

Overview

The Western Design Center 65C816 is the 16-bit descendant of the 6502, the chip used in the Apple IIgs and the SNES. It starts up in an "emulation" mode that runs 6502 code, and can switch to a native mode with 16-bit registers and a 24-bit address space (16 MB). For an Atari owner that means a CPU that runs existing software but could, in principle, reach far more memory and run faster. Several boards have put one in an 8-bit Atari.

The boards

Board Era What it is
Turbo-816 (DataQue Software, Chuck Steinman) 1989 A replacement CPU board with its own Turbo-OS ROM: one chip, or two for the 1200XL. A "Dual-Prom" option switches between Turbo-OS and the stock XL OS. Turbo-OS keeps the published XL OS entry points but drops the international character set and the cassette handler. DataQue also offered SRAM expansion cards, though few were sold, and Steinman's XASM assembler used a special binary header for 24-bit code. The STACK disk magazine later included a disk of Turbo-816 background information
Sweet 16 (Fine Tooned Engineering) early 1990s A plain 65816 CPU replacement with no extra RAM, so software had to use banked memory
Antonia / Antonia 2 modern A 65C816 board for XL/XE machines with linear memory above 64K. It's one of the targets supported by drac030's 65C816 software
Rapidus production from 2016 An accelerator: a 65C816 at 20 MHz running from its own fast RAM, with large "high memory" above 64K. A 40 MHz prototype was benchmarked in 2021. The original 6502 can stay on the board and even run in parallel, because Rapidus can halt either CPU and arbitrate bus access between them. Settings are reached from a Preference menu at power-up. By 2024 forum users reported it was no longer made

David Paterson's 1996 hardware FAQ already listed the Turbo-816 and Sweet 16. A later AtariAge discussion about 65816 support in BASIC XE noted that neither had been "distributed in any quantity", and named Rapidus and the cartridge-based Veronica as the upgrades owners actually had.

How the accelerated boards work

The 65C816 runs at full speed only while it works in its own fast RAM. Any access to the motherboard (its RAM, the OS ROM, or the ANTIC, GTIA, POKEY and PIA registers) has to drop to the normal bus speed of about 1.77 MHz (PAL) or 1.79 MHz (NTSC), and it must also wait when ANTIC halts the CPU for screen DMA. So the speed-up depends on the program. Number-crunching code in fast RAM can run about 11 times faster on a 20 MHz Rapidus. A program that pokes hardware registers in every loop gains much less.

One trap programmers ran into: POKEY's RANDOM register ($D20A) needs about eight bus cycles between reads to produce a fresh value. At 1.79 MHz that's never a problem. On a 20 MHz CPU, two back-to-back reads return visibly correlated numbers. drac030 published a cheaper workaround than the usual STA WSYNC or eight dummy reads.

Software

Most native 65C816 software comes from drac030 (Konrad Kokoszkiewicz):

  • 65C816 OS / Rapidus OS (from 2004): a replacement XL OS that keeps interrupts working in native mode, makes memory from $010000 upward usable, and adds memory-management calls and new entry points. Despite the name it doesn't need a Rapidus. Any 65C816 board, even the simplest adapter without extra RAM or acceleration, will run it. See >65C816 OS revision 2.49.
  • ELSA, a MAE-compatible 65C816 assembler. See >ELSA.
  • MultiBASIC, an Atari BASIC-compatible interpreter for 65C816 machines (disk-based, too large for an 8K cartridge), plus the Let's Emu! ZX Spectrum emulator, a CP/M 2.2 emulator using the same Z80 engine, and the IDE+ BIOS.
  • SpartaDOS X runs well on these machines. DOS 6.4 needed a small 65816 fix.

Using one today

  • Emulation first. Altirra emulates a 65C816 at higher clock speeds, Rapidus-style high memory (4 or 16 MB) and VBXE. A suggested set-up for drac030's software is: CPU 65C816 at maximum clock, high memory enabled, Rapidus OS loaded as the OS ROM, VBXE on, boot SpartaDOS X.
  • Compatibility. In emulation mode almost all 6502 software runs. Software that relies on illegal 6502 opcodes won't, because the 65C816 uses those opcodes for its own instructions. Timing-critical demos and copy protection may also fail with acceleration on, so switch the boost off for them.
  • Pairing. Accelerators work best with plenty of fast memory and a display upgrade such as VBXE, whose blitter does the graphics work while the CPU calculates. The two together are the closest the 8-bit Atari gets to a "SuperCPU".

Credits