Ref CDP-WEB-001-R1 · Project page · Nov 2026

CARDAPTER

Playing real Atari 2600 games on a Commodore 64. It started as a 1983 adapter that was advertised but never shipped; this project finally builds it.

6510 assembly C64 · Ultimate 64 Cartridge-port hardware 3D-printed enclosures VIC-20 variant

00The 1983 adapter that never shipped

In 1983, the original "Cardapter 1" was advertised as a way to plug Atari 2600 cartridges into a Commodore 64. It never reached customers.

The adapter was associated with Protecto, Cardco and Computer Works of Phoenix. Protecto listed it at $99, with a sale price of $89, and ads ran in Commodore Power Play (Spring 1983) and The Torpet. Then it disappeared and became one of the better-known pieces of Commodore vaporware.

This project builds what those ads promised. You put a real Atari 2600 cartridge into a box on the C64's expansion port, and the game plays on the Commodore. The Commodore handles video, sound and joysticks itself. On the C64 build there is no Atari chip anywhere in the signal path.

01Project at a glance

The project has four parts: an emulator, a hardware reader, an enclosure, and a separate VIC-20 board.

11–16 KBEmulator size in 6510 assembly (NTSC build is 16,102 bytes)
10+Cartridge bank-switching formats in the handoff protocol
1,019Cartridge titles in the compatibility sweep collection
v40Revisions of the REU-style enclosure so far, each one test-printed
Atari 2600 cartridge Cardapter reader 2600 slot → C64 cart port rear pass-through (REU) per-cart hint ROM (planned) C64 / Ultimate 64 6510 emulator / translator ROM at $5000–$8FFF VIC-II bitmap 160×192 SID audio · CIA joystick TV + joystick the game plays ROM dump
WorkstreamStatusSummary
6510 emulatorPlayableGames run on real hardware. All regression suites pass. The ROM compatibility sweep is in progress.
Native translatorStartedConverts 2600 code to native 6510 for full speed. Being developed in its own test folder.
C64 cartridge readerPrototype builtHand-soldered on a TexElec protoboard with a salvaged Atari 2600 connector. Two earlier PCB revisions exist.
REU-style enclosurev40Made from reshaped Commodore 1750 REU shells. The PCB sandwich retention design has not been test-printed yet.
Prototype-rig casev0.9.18A case for the bench rig that holds the protoboard and the Atari connector.
VIC-20 boardRev 2.1 plannedUses socketed real Atari chips. The Rev 2 Gerbers must not be fabricated.

02The emulator: an Atari 2600 written in 6510 assembly

This is the core of the project. It emulates the Atari 6507 CPU, TIA video/sound chip and RIOT timer on the C64's own 6510, in hand-written ACME assembly, with Python tools to verify it.

Architecture

  • The 2600 playfield and sprites draw into a C64 multicolour bitmap (160×192 at $2000).
  • Cartridge data sits at $5000–$8FFF, which is four 4K bank slots.
  • A $C000 trampoline disables interrupts, banks RAM in at $A000–$BFFF and jumps to the real start. Control passes one way and does not return.
  • NTSC and PAL are separate builds. PAL uses a 128-entry TIA colour table checked against community palette data.

Cart handoff protocol

  • $4FFF holds the mapper / bank-count marker: 1–4 for plain 4K banks, 6 FE, 7 WD, 8 E0 (Parker Bros), 9 3F, 10 E7, 12 E7-16K.
  • $4FFE belongs to the emulator. External tools must never write it.
  • 2K carts are mirrored to 4K in slot 0 before handoff.
  • $4FF8–$4FFD is an optional diagnostic header: a CRC32, the slot count and the magic byte $CA.

Memory map

$2000
Multicolour bitmap, 160×192, used as the 2600 display
$4FF8–$4FFF
Handoff header: CRC32, slots, magic, region, mapper marker
$5000–$8FFF
Cartridge ROM, four 4K bank slots
$9100–$CFE4
Emulator code (current NTSC build, 16,102 bytes)
$A000–$BFFF
RAM banked in by the trampoline
$C000
Entry trampoline (SEI → bank switch → jump)

Test infrastructure

SuiteResultWhat it covers
batch_endtoend7 / 7Full boot-to-gameplay runs
hwtest38 / 38Hardware register behaviour
midlinetest60 / 60Register writes in the middle of a scanline
rastertest24 / 24Raster timing and positioning

Supporting tools are a Python reference simulator (refsim.py), a trace harness (canonical_harness.py), pc_trace_diff.py, a lock-step TIA sweep and a PAL scanner. The emulator is also tested headless in VICE x64sc, with Stella as an independent 2600 reference, and over the network on a real Ultimate 64.

Confirmed playable on real hardware

Moon Patrol · Galaxian · Barnstorming · Bugs Bunny · Phoenix · Pitfall! · Mario Bros. · BurgerTime · Springer · and more. Console switches are mapped to F1 (Reset), F3 (Select), F5 (TV Type) and F7 / Shift+F7 (Difficulty).

Notable bugs found and fixed

RIOT timer

A root-cause fix that cleared the remaining known pixel failures in one change.

BurgerTime (E7)

Two bugs: a stale cart marker, and AND #$05 where AND #$0F was needed, which caused silent wrong-bank reads.

Springer (3F)

A bounds check ran after the address had already been masked, so the check could never fail. Fixed by saving the unmasked address first.

Raster IRQ cost

The raster interrupt was using about 79% of CPU cycles. It was cut down to free time for emulation.

Joystick dead

The CIA1 port A data-direction register had never been configured.

Visual glitches

Ms. Pac-Man top clipping, Centipede stale collision masks, a missing Keystone Kapers RESBL flush, and COLUBK tearing.

03The C64 cartridge reader

This is the hardware half. An Atari 2600 cartridge plugs into it, and it plugs into the C64 or Ultimate 64 expansion port so the C64 can read the cartridge ROM.

Current prototype Built

Hand-soldered on a TexElec Commodore 64/128 Cartridge Port Prototype Card v1.0, with a salvaged real Atari 2600 cartridge connector. The card's onboard EEPROM, reset and DIP switches are disabled for this reader-only build. The board is L-shaped, about 100×100 mm with a 39×30 mm notch, and has two M3 mounting holes at the back corners.

PCB revisions

Rev 1.1 and Rev 3.0 were designed in April–May 2026 and have scripted builds and Gerbers. Work since then has concentrated on the enclosure and the emulator.

Design decisions for the final card (Nov 2026)

04The enclosure: a Commodore 1750 REU shell, reshaped

The reader should look like it came from Commodore. Instead of modelling a case from scratch, the project reshapes real Commodore 1750 REU shell meshes into a case that fits the Cardapter board.

An early parametric OpenSCAD version went through connector integration, a sloped wedge shape and a raised logo, and was then dropped. The current approach edits the real REU top and bottom shell STLs with Python, trimesh and manifold3d. OpenSCAD's CGAL engine can't process these meshes, so OpenSCAD is only used for preview renders.

v1 – v9 · Fit the board

Stretched the body to 140×130 mm while keeping the real 68×34 mm REU tongue. Corrected the board to its real L-shape and cut an insertion tunnel at the C64 port's measured height. Added a PCB-clearance cutter after collision checks found real interferences.

v10 – v16 · Print-driven fixes

Spliced in a seam bridge and added ear-mount holes. Found real through-holes with multi-direction ray casting after a print showed a defect the render had missed.

v17 – v31 · The seam saga

Patched the tongue/body seam over many rounds for wall thickness, floating bridges and stale cutters. Moved the corner posts off the PCB and gave them friction-fit pegs. Added four PCB support feet that clear the floor ribbing.

v27 · Pegs that actually fit

The original peg design was an interference fit that FDM printing couldn't assemble. It was changed to a 0.3 mm radial clearance fit (peg r 2.1 / socket r 2.4), and that is still the working value. This version also introduced the assembled-fit check: a boolean intersection of both shells together.

v32 – v33 · Redesign

Removed the bottom shell's tongue and front wall entirely instead of patching the seam again. Added a floor patch for the card-edge strip and rebuilt a front wall that matches the back wall.

v34 – v37 · One lip all the way round

Grid scans showed the top collar's height changes across the wall's thickness. The bottom lip is now a uniform 15.8 mm all the way around. Closed a 3.7 mm hidden gap at the top shell's seam and a front-face hole next to the left pillar.

v38 – v39 · Trim and interlock

Trimmed both tongues flush with the card-edge fingers and moved the front feet out from under them. Added three interlocking ridges so the two halves register to each other.

v40 · PCB sandwich awaiting print

Enlarged the board pins to 2.6 mm and added support shoulders. Added top-shell bosses and tongue posts that come down to 0.1 mm above the PCB, so the board is held without being crushed. The design follows enclosure-retention guidance against fully rigid clamps.

Open item: the real card-edge finger depth still needs to be measured to confirm where the front support feet should sit.

05The prototyping rig case

This is a separate two-piece case for the TexElec protoboard. It turns the board into a bench rig: a real Atari 2600 cartridge plugs in on top and is hand-wired through the 2×22 header, so the adapter logic can be tested before a PCB is ordered.

v0.1 – v0.7 · Open tray + frame

Built an L-shaped tray from Andy's own measurements of the board. Sized the tongue to a stock C64 cartridge shell (68.8 mm), moved the pegs into the corners, and added a friction-fit alignment lip with 0.1 mm clearance.

v0.8 – v0.9.2 · Atari connector on top

Mounted the real 2600 connector on the lid and fused it flush into the roof. Tried a sloped profile.

v0.9.3 – v0.9.12 · Two boxes, like the 1750

Dropped the slope, added a raised CARDAPTER logo, and gave the box sharp corners. Measured the real 1750 mesh to get the tongue height, the 4 mm edge rounding and the position of the rear ridge band.

v0.9.13 – v0.9.18 · Centred in the slot

Raised the PCB so it sits centred in the C64's double-sided slot (19.5 mm tongue, mid-plane at 9.75 mm). Opened the tongue to match the REU's four-window roof with edge rails, and moved the Atari connector to the back.

06The VIC-20 board

This is a different approach. The VIC-20 can't do the work the C64 does, so this board carries real Atari chips that generate the game themselves.

Topology

120×122 mm, 2-layer FR4 with ENIG finish. It has socketed real TIA (C010444), RIOT (6532) and 6507 chips, composite video from a 2N3904 resistor mixer, and audio from an LM386. A separate "Cart Tap" board (90×30 mm, gold fingers) brings audio-in, the RAM selects and ground over a 5-pin JST-XH.

Status Rev 2.1 planned

Rev 2.1 will reroute from the netlist using vias and the bottom copper layer. A verifier script must pass before any submission ZIP is produced, and 31 netlist conflicts need sign-off against the datasheets.

Do not fabricate the Rev 2 Gerbers. They contain hard copper shorts: 101 of 108 DIP pins are fused into one net, and 60 traces cut through pad rows.

07Roadmap

The top priority is running every cartridge at full speed. The end goal is reading the ROM from the real cartridge.

#ReleaseTargetPriority
1Translated, with per-cart hint tableFull speed. The table goes on the d64, and later on a ROM chip on the Cardapter.Top
2Interpreter (current emulator)Works now but runs below full speed. Can use the Ultimate 64's turbo mode.Exists
3Translated from the ROM aloneCarts that aren't in the hint table.Planned
4Stock 1 MHz C64Shows that it plays on an unmodified C64.Planned
5Stock C64 + REUDemo version, using the rear pass-through.Lowest

Next work in progress: finishing the 1,019-title ROM sweep, the BurgerTime stall at 0 frames, re-running the TIA lock-step sweep on Race, Video Chess and Stargate, the Stronghold (CommaVid) mapper, and PAL timing. Non-game carts (CompuMate, Supercharger, diagnostic carts) are out of scope.

08Lessons learned

Real hardware decides

Several changes passed every simulator test and then failed on a real C64, and two blue-screened it. Simulation is weakest around CIA ports, bus timing and anything cycle-sensitive.

A print photo beats a render

Every time a physical test print and a CAD check disagreed, the print was right. A watertight mesh can still fail to print.

Validate the tools first

Bugs were found in the reference simulator (16-bit instead of 13-bit addressing), the trace harness and the trace differ (it never compared TIA timing). Check the test helpers before trusting their results.

Patch past the true edge

Many enclosure bugs came from fills that stopped just inside a wall's real edge, or from reusing a neighbouring feature's dimensions. Measure each spot where it actually is.

Check the assembly, not just the parts

Real interference between the two shells only showed up when both were intersected together. That check now runs on every version.

Retract wrong findings openly

When a conclusion turns out wrong, say so explicitly. Don't quietly revise it.