EN

Cartridge · store.atariage.com/products/pxe-development-kit

Chameleon Cart

A cheap single-game cartridge with a Cortex-M0+. The game is linked together with the firmware into one image, which you flash with an ST-Link. It works on both the 2600 and the 7800, and it’s sold as the PXE development kit.

Template and firmware by Zachary Scolaro (ZackAttack). His company, Phantom Logic, sells it as the PXE Development Kit.

Complete 25With differences 3Empty 0Missing 23

STM32G070Cortex-M0+ · 64 MHz

Specifications

ProcessorSTM32G070RB, a Cortex-M0+ running at 64 MHz
Memory128 KB of flash and 36 KB of RAM. There’s also a 512 KB version (STM32G0B0RE, with 144 KB of RAM).
Where the game runsIn flash. Code that feeds the 6507 outside the overblank goes in RAM (.RamFunc).
FirmwarePrecompiled objects that come with the template, with no published licence

Next revision

Zachary Scolaro (ZackAttack) is working on a revision with Raspberry Pi’s RP2354A, an RP2350 with 2 MB of flash inside. Which vcsLib it will have isn’t known yet.

Versions

2022202320242025202620272025-10-23
VersionDateChanges to vcsLib
2025-10-232025-10-23The template. The firmware comes as .o files that are linked with the game. It starts with the console already set up and running its own overblank (FF_CHAMELEON_CART).

Errata

  1. vcsJmpToRam3 expects the 6507 to come back two bytes after the JMP instead of three, so after a vcsJmp3 it waits at $1002 rather than $1003.
  2. vcsRead4 serves a NOP afterwards, so it takes 6 cycles like vcsRead6.
  3. vcsSta4, vcsStx4 and vcsSty4 are declared with uint8_t, but they use the full 16-bit address.
  4. There’s no bus stuffing, no stack functions, and no vcsJsr6, vcsTxs2 or vcsWaitForAddress. The header declares them, so the error shows up when linking.
  5. Two races, one in vcsEndOverblank and one in the vcsInjectDmaData call at startup, can hang the console depending on how the clocks line up. They were measured in a simulator and haven’t been confirmed on a console.
  6. The elf_main example tests args[MP_FEATURE_FLAGS] == FF_REDUCED_HMOVE with equality, which never matches when FF_CHAMELEON_CART is set as well.

On the differences page

Compatibility by version

● complete ◐ works with differences ○ exists but does nothing – missing ? no data

Function2025-10-23Notes
Startup
elf_main●The console is already initialised and running the firmware’s overblank, so the game has to call vcsEndOverblank before it serves anything at $1000.
Flow control
vcsJmp3●
vcsNop2●
vcsNop2n●
vcsNop3–
vcsSleep●
vcsJsr6–
vcsTxs2–
Loads and stores
vcsLda2●
vcsLdx2●
vcsLdy2●
vcsSta3●
vcsStx3●
vcsSty3●
vcsSax3●
vcsSta4●Declared with uint8_t, but it uses the full 16-bit address.
vcsStx4●Declared with uint8_t, but it uses the full 16-bit address.
vcsSty4●Declared with uint8_t, but it uses the full 16-bit address.
vcsWrite5●
vcsWrite6●
Reads
vcsRead4◐It also serves a NOP afterwards, so it takes 6 cycles, like vcsRead6.
vcsRead6–
Bus stuffing
vcsLdaForBusStuff2–It isn’t in the firmware.
vcsLdxForBusStuff2–It isn’t in the firmware.
vcsLdyForBusStuff2–It isn’t in the firmware.
vcsWrite3–It isn’t in the template firmware.
vcsWrite4–
Stack
vcsPha3–
vcsPhp3–
vcsPla4–
vcsPlp4–
vcsPla4Ex–
vcsPlp4Ex–
Overblank
vcsCopyOverblankToRiotRam●
vcsStartOverblank●
vcsEndOverblank◐It has a race. In the simulator, 7 of 101 clock offsets hang after a long overblank (not confirmed on a console yet). If it starts waiting while the bus is already at $1FFF, the 0 arrives too late.
7800 bus
vcsJmpToRam3●It expects the return at JMP + 2 ($1002 after vcsJmp3) instead of JMP + 3.
vcsWaitForAddress–It isn’t in the firmware.
vcsSnoopRead●
vcsInjectDmaData◐The firmware uses it at startup, and it has a race that hangs 36 of 801 clock offsets in the simulator.
Cartridge ROM
vcsPokeRomByte–Declared in the header but missing from the firmware, so linking fails.
vcsSetNextAddress–Declared in the header but missing from the firmware, so linking fails.
Saving
vcsInitNvStore–
vcsWriteNvChunk–
vcsProcessNvStoreEvents–
vcsIsNvBusy–
Utilities
randint●
ReverseByte●
ColorLookup–
memset●They come in the template’s main.o, not in vcsLib.o.
memcpy●They come in the template’s main.o, not in vcsLib.o.