Library
VCSIDE
VCSIDE, a development environment for the 2600, has a vcsLib written on the bus library of its ACE projects. With it an ELF game can also be built as an ACE file, the format the UnoCart and the PlusCart run without linking. Since 18 November 2026 new ELF projects no longer offer it, and only its “ELF game on vcsLib” example uses it.
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) |
| Build | make ace, in the “ELF game on vcsLib” example |
Versions
2022202320242025202620272026-11
| Version | Date | Changes to vcsLib |
|---|---|---|
| 2026-11 | 2026-11-11 | The first version, with the 2600 functions but without bus stuffing or the stack. |
Implementation notes
- 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, and vcsSnoopRead always returns 0.
- Its overblank program writes AUDV0 on every line by itself, and it keeps driving the data bus after the jump to RIOT RAM, so on a PlusCart the screen stays black.
- The args array has only three entries, so there’s no MP_ELAPSED or MP_THRESHOLD. args[MP_SYSTEM_TYPE] is the TV system the game was built for, and args[MP_FEATURE_FLAGS] is FF_MULTI_CART.
- When elf_main returns, it serves JMP ($FFFC) so that the cartridge’s menu takes over.
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 ? not published
| Function | 2026-11 | Notes |
|---|---|---|
| Startup | ||
| elf_main | ● | The args array has only three entries. |
| 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 | ? | |