EN
vcsLdaForBusStuff2(3V)vcsLib manualvcsLdaForBusStuff2(3V)
Name

vcsLdaForBusStuff2

Loads A with the mask the cartridge needs for bus stuffing.

Synopsis
#include "vcsLib.h"

void vcsLdaForBusStuff2(void);
Description

A, X and Y have to hold the firmware’s masks before you use vcsWrite3 or vcsWrite4. Each mask leaves weak the bits the cartridge is going to force.

The firmware chooses the masks at startup, after measuring which bits the console lets it override. That’s why you can’t load them with vcsLda2, since the game doesn’t know the value.

On the bus

It serves A9 mm and takes 2 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:

φ2A12–A0D7–D0R/W$1000A9$1001M
1 lda #2 mask

served by the cartridge

Example
vcsLdaForBusStuff2();
vcsLdxForBusStuff2();
vcsLdyForBusStuff2();
Compatibility

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

ImplementationBy versionNotes
Stella◐ 7.0◐ masterIt loads #$00.
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-23It isn’t in the firmware.
Chameleon Cart, alternative firmware● 2026-11-28
Newbroo Wild Cart and Decker? 2026
VCSIDE ACE adapter– 2026-11
Known issues
See also

vcsWrite3(3V), vcsWrite4(3V)

vcsLib · December 2026Bus stuffingvcsLdaForBusStuff2(3V)