Cartridge · github.com/Al-Nafuur/United-Carts-of-Atari
PlusCart and UnoCart
Multicarts built around an STM32F4. The UnoCart reads games from an SD card and the PlusCart downloads them over Wi-Fi. Both run the United-Carts-of-Atari firmware, which is where the ELF loader and the reference vcsLib.h header started out.
Wolfgang Stubig (Al_Nafuur), who sells it on his website, Firmaplus. The ELF loader is by Zachary Scolaro (ZackAttack) and the original UnoCart by Robin Edwards (electrotrains).
Complete 37With differences 4Empty 5Missing 5
Specifications
| Processor | STM32F4, Cortex-M4F |
|---|---|
| Where the game runs | In RAM, with vcsLib in flash |
| Size | ELF files of up to 96 KB run from RAM, and larger ones from flash (since 2.3.32) |
| Firmware | United-Carts-of-Atari, under the GPL |
Versions
2022202320242025202620272.3.15 – 2.3.28git 2025-112.3.32
| Version | Date | Changes to vcsLib |
|---|---|---|
| 2.3.15 – 2.3.28 | 2023-01-19 | The first builds with the ELF loader and vcsLib (the code is from December 2022). The set of functions stayed the same up to 2.3.28, in April 2025. |
| git 2025-11 | 2025-11-12 | Unreleased work that adds vcsWrite4, vcsRead6 and the vcsSleep macro, takes vcsRead4 out of the header and removes ColorLookup. |
| 2.3.32 | 2026-11-07 | Save functions (still empty), PXE and ELF files bigger than the buffer, and ELF files over 96 KB loaded from flash. |
Errata
- vcsLib lives in flash and the game in RAM, so every call into vcsLib has to be a long call (long_call). Otherwise linking fails because the target is too far away.
- It only understands the R_ARM_TARGET1, R_ARM_ABS32, R_ARM_THM_CALL and R_ARM_THM_JUMP24 relocations.
- vcsPla4Ex serves PHP (08) instead of PLA (68).
- injectDmaData exists but is empty, and there’s no vcsSnoopRead, so an ELF that references it won’t load.
- The save functions are empty. They link, but nothing is saved.
- It never sets FF_CHAMELEON_CART or FF_REDUCED_HMOVE, and never reports a 7800 system type.
- Bus stuffing is only switched on if the ELF references vcsWrite3 or vcsWrite4.
On the differences page
- vcsJmpToRam3 on the Chameleon Cart expects the return one byte earlier: JMP + 3.
- Some implementations of vcsSta4 only use the low byte: 16 bits.
- vcsRead4 doesn’t take the same number of cycles everywhere: 4 cycles, kept for older games.
- You can’t test bus stuffing in Stella: Calibrated masks. It’s only on if the ELF references vcsWrite3 or vcsWrite4.
- Functions with a different name, or that do nothing: injectDmaData and the save functions are empty, and there’s no vcsSnoopRead.
- Where the game code runs: The game runs in RAM and vcsLib in flash, so calls need long_call.
- The Chameleon Cart calls elf_main with the console already running: The 6507 is at $1000 and only FF_MULTI_CART is set.
Compatibility by version
● complete ◐ works with differences ○ exists but does nothing – missing ? no data
| Function | 2.3.15 – 2.3.28 | git 2025-11 | 2.3.32 | Notes |
|---|---|---|---|---|
| Startup | ||||
| elf_main | ◐ | ◐ | ◐ | It accepts main or elf_main. It only ever sets FF_MULTI_CART, and MP_SYSTEM_TYPE is always 0, 1 or 2. |
| Flow control | ||||
| vcsJmp3 | ● | ● | ● | |
| vcsNop2 | ● | ● | ● | |
| vcsNop2n | ● | ● | ● | It doesn’t check for count = 0. |
| vcsNop3 | – | – | – | |
| vcsSleep | ● | ● | ● | |
| vcsJsr6 | ● | ● | ● | |
| vcsTxs2 | ● | ● | ● | |
| Loads and stores | ||||
| vcsLda2 | ● | ● | ● | |
| vcsLdx2 | ● | ● | ● | |
| vcsLdy2 | ● | ● | ● | |
| vcsSta3 | ● | ● | ● | |
| vcsStx3 | ● | ● | ● | |
| vcsSty3 | ● | ● | ● | |
| vcsSax3 | ● | ● | ● | |
| vcsSta4 | ● | ● | ● | |
| vcsStx4 | ● | ● | ● | |
| vcsSty4 | ● | ● | ● | |
| vcsWrite5 | ● | ● | ● | |
| vcsWrite6 | ● | ● | ● | |
| Reads | ||||
| vcsRead4 | ● | ◐ | ◐ | It’s still in the firmware so that older ELF files keep working, but it was taken out of the header in November 2025. |
| vcsRead6 | – | ● | ● | |
| Bus stuffing | ||||
| vcsLdaForBusStuff2 | ● | ● | ● | |
| vcsLdxForBusStuff2 | ● | ● | ● | |
| vcsLdyForBusStuff2 | ● | ● | ● | |
| vcsWrite3 | ● | ● | ● | The loader only turns bus stuffing on if the ELF references vcsWrite3 or vcsWrite4. |
| vcsWrite4 | – | ● | ● | |
| Stack | ||||
| vcsPha3 | ● | ● | ● | |
| vcsPhp3 | ● | ● | ● | |
| vcsPla4 | ● | ● | ● | |
| vcsPlp4 | ● | ● | ● | |
| vcsPla4Ex | ◐ | ◐ | ◐ | It serves PHP (08) instead of PLA (68). |
| vcsPlp4Ex | ● | ● | ● | |
| Overblank | ||||
| vcsCopyOverblankToRiotRam | ● | ● | ● | |
| vcsStartOverblank | ● | ● | ● | |
| vcsEndOverblank | ◐ | ◐ | ◐ | It first waits for the 6507 to go past $00A9. |
| 7800 bus | ||||
| vcsJmpToRam3 | ● | ● | ● | |
| vcsWaitForAddress | ● | ● | ● | |
| vcsSnoopRead | – | – | – | It’s missing, so an ELF that references it won’t load. |
| vcsInjectDmaData | ○ | ○ | ○ | It’s called injectDmaData and it’s empty. It links, but a 7800 game ends up with no graphics. |
| Cartridge ROM | ||||
| vcsPokeRomByte | – | – | – | |
| vcsSetNextAddress | – | – | – | |
| Saving | ||||
| vcsInitNvStore | – | – | ○ | It’s empty. It links, but nothing gets saved. |
| vcsWriteNvChunk | – | – | ○ | It’s empty. It links, but nothing gets saved. |
| vcsProcessNvStoreEvents | – | – | ○ | It’s empty. It links, but nothing gets saved. |
| vcsIsNvBusy | – | – | ○ | It’s empty. It links, but nothing gets saved. |
| Utilities | ||||
| randint | ● | ● | ● | |
| ReverseByte | ● | ● | ● | |
| ColorLookup | ● | – | – | Removed in November 2025. |
| memset | ● | ● | ● | |
| memcpy | ● | ● | ● | |