vcsLdy2(3V)vcsLib manualvcsLdy2(3V)
- Name
vcsLdy2
Serves LDY #, which loads an immediate value into Y.
- Synopsis
#include "vcsLib.h" void vcsLdy2(uint8_t value);- Description
Together with the store functions, it lets you write the same value to several registers without loading it every time.
For bus stuffing, the masks are loaded with vcsLdaForBusStuff2, vcsLdxForBusStuff2 and vcsLdyForBusStuff2.
- On the bus
It serves
A0 nnand takes 2 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:1 ldy #2 valueserved by the cartridge
- Example
vcsLdy2(0x0E); vcsSty3(COLUP0);- Compatibility
● complete ◐ works with differences ○ exists but does nothing – missing ? no data
Implementation By version Notes 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-11 - See also
vcsLib · December 2026Loads and storesvcsLdy2(3V)