EN
vcsInitNvStore(3V)vcsLib manualvcsInitNvStore(3V)
Name

vcsInitNvStore

Registers the two areas of memory that get saved.

Synopsis
#include "vcsLib.h"

void vcsInitNvStore(uint16_t size0, uint16_t size1, uint8_t *p0, uint8_t *p1);
Description

Each slot is a block of the game’s RAM, which the cartridge copies to its non-volatile memory when asked to. Sizes are given in 32-bit words.

Saving happens in small steps. vcsWriteNvChunk starts it, vcsProcessNvStoreEvents moves it along during the overblank, and vcsIsNvBusy tells you when it’s finished.

On the bus

It doesn’t put anything on the bus.

Example
static uint32_t records[16], options[4];
vcsInitNvStore(16, 4, (uint8_t *)records, (uint8_t *)options);
vcsWriteNvChunk(0);                 /* slot 0 */
while (vcsIsNvBusy()) vcsProcessNvStoreEvents();
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.32It’s empty. It links, but nothing gets saved.
Chameleon Cart– 2025-10-23
Chameleon Cart, alternative firmware– 2026-11-28
Newbroo Wild Cart and Decker? 2026
VCSIDE ACE adapter– 2026-11
Known issues
See also

vcsWriteNvChunk(3V), vcsProcessNvStoreEvents(3V), vcsIsNvBusy(3V)

vcsLib · December 2026SavingvcsInitNvStore(3V)