vcsSleep(3V)vcsLib manualvcsSleep(3V)
- Name
vcsSleep
A macro that waits an exact number of cycles, as long as it’s more than 1.
- Synopsis
#include "vcsLib.h" #define vcsSleep(cycles)- Description
It combines vcsJmp3 (3 cycles) and vcsNop2n (2 per NOP) to add up to the number you ask for, and checks at compile time that it’s greater than 1.
It’s a macro in the PlusCart header (September 2025), not a symbol the loader provides, so if you copy the macro it works on any implementation that has vcsJmp3 and vcsNop2n.
- On the bus
It serves
4C 00 10, EA…and takes cycles cycles.- Example
vcsSleep(7); /* jmp (3) + 2 nops (4) */- 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 2026Flow controlvcsSleep(3V)