Library · github.com/jrx-jsj/vcside
VCSIDE ACE adapter
A vcsLib that gets compiled into the game itself to produce an ACE ROM, the format the UnoCart and PlusCart load without linking. With it, a game written for vcsLib also runs on cartridges that read ACE but not ELF.
VCSIDE (public domain, CC0)
Complete 15With differences 3Empty 4Missing 27
Specifications
| File | data/templates/elf/ace/vcslib_ace.c |
|---|---|
| Processor | Cortex-M4F (UnoCart and PlusCart) |
Versions
2022202320242025202620272026-11
| Version | Date | Changes to vcsLib |
|---|---|---|
| 2026-11 | 2026-11-10 | First version, with the 2600 functions but without bus stuffing or the stack. |
Errata
- vcsRead4 takes 7 cycles (8 above $FF), because it reads the byte and then writes it to $1FF0 so the ARM can see it.
- vcsSta4 only exists for zero page, and there’s no vcsStx4 or vcsSty4.
- The 7800 functions exist but do nothing.
- Its overblank program writes AUDV0 on every line by itself.
On the differences page
- vcsJmpToRam3 on the Chameleon Cart expects the return one byte earlier: It does nothing.
- Some implementations of vcsSta4 only use the low byte: Only vcsSta4 exists, and only for zero page.
- vcsRead4 doesn’t take the same number of cycles everywhere: 7 cycles, or 8 above $FF.
Compatibility by version
● complete ◐ works with differences ○ exists but does nothing – missing ? no data
| Function | 2026-11 | Notes |
|---|---|---|
| Startup | ||
| elf_main | ● | |
| Flow control | ||
| vcsJmp3 | ● | |
| vcsNop2 | ● | |
| vcsNop2n | ● | |
| vcsNop3 | – | |
| vcsSleep | ● | |
| vcsJsr6 | – | |
| vcsTxs2 | – | |
| Loads and stores | ||
| vcsLda2 | ● | |
| vcsLdx2 | ● | |
| vcsLdy2 | ● | |
| vcsSta3 | ● | |
| vcsStx3 | ● | |
| vcsSty3 | ● | |
| vcsSax3 | – | |
| vcsSta4 | ◐ | Only vcsSta4 exists, and only for zero page. |
| vcsStx4 | – | It doesn’t exist. |
| vcsSty4 | – | It doesn’t exist. |
| vcsWrite5 | ● | |
| vcsWrite6 | ● | |
| Reads | ||
| vcsRead4 | ◐ | 7 cycles (8 above $FF). |
| vcsRead6 | – | |
| Bus stuffing | ||
| vcsLdaForBusStuff2 | – | |
| vcsLdxForBusStuff2 | – | |
| vcsLdyForBusStuff2 | – | |
| vcsWrite3 | – | |
| vcsWrite4 | – | |
| Stack | ||
| vcsPha3 | – | |
| vcsPhp3 | – | |
| vcsPla4 | – | |
| vcsPlp4 | – | |
| vcsPla4Ex | – | |
| vcsPlp4Ex | – | |
| Overblank | ||
| vcsCopyOverblankToRiotRam | ◐ | Its program writes AUDV0 on every line by itself. |
| vcsStartOverblank | ● | |
| vcsEndOverblank | ● | |
| 7800 bus | ||
| vcsJmpToRam3 | ○ | It exists, but does nothing. |
| vcsWaitForAddress | ○ | It does nothing. |
| vcsSnoopRead | ○ | It always returns 0. |
| vcsInjectDmaData | ○ | It does nothing. |
| Cartridge ROM | ||
| vcsPokeRomByte | – | |
| vcsSetNextAddress | – | |
| Saving | ||
| vcsInitNvStore | – | |
| vcsWriteNvChunk | – | |
| vcsProcessNvStoreEvents | – | |
| vcsIsNvBusy | – | |
| Utilities | ||
| randint | – | |
| ReverseByte | – | |
| ColorLookup | – | |
| memset | ? | |
| memcpy | ? | |