EN
vcsCopyOverblankToRiotRam(3V)vcsLib manualvcsCopyOverblankToRiotRam(3V)
Name

vcsCopyOverblankToRiotRam

Copies into RIOT RAM the program that runs VSYNC, VBLANK and overscan without the cartridge.

Synopsis
#include "vcsLib.h"

void vcsCopyOverblankToRiotRam(void);
Description

Call it once at startup. The program takes up RAM from $80 onwards, and the game can’t use those bytes for anything else.

Each loader ships its own program, with small timing differences. A game that patches it, to play sound during the overblank for example, has to check the bytes it changes first.

On the bus

It serves 49 × (A9 nn 85 zp) and takes 245 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:

φ2A12–A0D7–D0R/W$1000A9$100185$100285$100380$008085
1 lda #2 first byte3 sta zp4 $805 into RIOT RAM

served by the cartridgewritten by the 6507

Example
vcsJmp3();
vcsCopyOverblankToRiotRam();
vcsStartOverblank();
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● master
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-23
Chameleon Cart, alternative firmware● 2026-11-28
Newbroo Wild Cart and Decker? 2026
VCSIDE ACE adapter◐ 2026-11Its program writes AUDV0 on every line by itself.
Known issues
See also

vcsStartOverblank(3V), vcsEndOverblank(3V)

vcsLib · December 2026OverblankvcsCopyOverblankToRiotRam(3V)