EN
vcsJmpToRam3(3V)vcsLib manualvcsJmpToRam3(3V)
Name

vcsJmpToRam3

Jumps into the console’s RAM, where the 6507 carries on by itself.

Synopsis
#include "vcsLib.h"

void vcsJmpToRam3(uint16_t address);
Description

It serves a JMP to address and stops serving. The 6507 runs whatever is in RAM (RIOT RAM on the 2600, the console’s own RAM on the 7800) until it comes back to the cartridge with another JMP.

That JMP has to land on the address the cartridge expects, and this is where implementations disagree. Stella, the PlusCart and Gopher2600 expect the byte after the JMP ($1003 after a vcsJmp3), but the Chameleon Cart expects it one byte earlier ($1002). The Differences page goes into it.

On the 7800 it’s used to park the 6502, which doesn’t wait for the cartridge. On the 2600 it’s for short routines in RIOT RAM that the 6507 runs while the ARM gets the next line ready, as on the PCM music title screen of Osito Panda.

On the bus

It serves 4C lo hi and takes 3 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:

φ2A12–A0D7–D0R/W$10004C$100180$100200$008085$008102$0002A$00824C$008303$008410$1003A9
1 jmp2 low byte3 high byte4 sta WSYNC in RAM5 6 WSYNC7 jmp $10038 9 10 the cartridge takes over again

served by the cartridgewritten by the 6507answered by RAM, the TIA or the RIOT

Example
/* routine in RIOT RAM: sta WSYNC / jmp $1003 */
vcsJmp3();
vcsJmpToRam3(0x80);        /* the 6507 comes back at $1003 ($1002 on the Chameleon) */
vcsWrite5(COLUBK, c);
Compatibility

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

ImplementationBy versionNotes
Stella● 7.0● master
Gopher2600– 2022-2023◐ 2025-04◐ v0.51.0◐ v0.53.0● masterUntil 25 November 2026 it expected the return at the RAM address (fixed in 0082998a3).
Test7800● 2025● v0.8.0 – v0.9.0
PlusCart and UnoCart● 2.3.15 – 2.3.28● git 2025-11● 2.3.32
Chameleon Cart● 2025-10-23It expects the return at JMP + 2 ($1002 after vcsJmp3) instead of JMP + 3.
Chameleon Cart, alternative firmware◐ 2026-11-28On the 2600 it’s the template’s version, with the return at JMP + 2. On the 7800 it uses its own.
Newbroo Wild Cart and Decker? 2026
VCSIDE ACE adapter○ 2026-11It exists, but does nothing.
Known issues
See also

vcsStartOverblank(3V), vcsWaitForAddress(3V)

vcsLib · December 20267800 busvcsJmpToRam3(3V)