EN
vcsNop2n(3V)vcsLib manualvcsNop2n(3V)
Name

vcsNop2n

Serves count NOPs in a row, while the ARM gets on with other work.

Synopsis
#include "vcsLib.h"

void vcsNop2n(uint16_t count);
Description

The cartridge serves a single EA and lets the 6507 keep reading it while it moves through count − 1 addresses. That gives the ARM 2 × count cycles of the 6507 to do something else.

The 6507 moves forward count bytes, so with large values you need a vcsJmp3 afterwards to keep it inside the cartridge.

Each implementation does something different with count = 0, so it’s best avoided.

On the bus

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

φ2A12–A0D7–D0R/W$1000EA$1001··$1001EA$1002··$1002EA
1 nop2 dummy read3 nop4 dummy read5 nop

served by the cartridgedummy read

Example
vcsNop2n(20);              /* 40 cycles for the ARM */
vcsJmp3();
Compatibility

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

ImplementationBy versionNotes
Stella● 7.0● masterIt does nothing when count is 0.
Gopher2600● 2022-2023● 2025-04● v0.51.0● v0.53.0● masterIt doesn’t check for count = 0.
Test7800● 2025● v0.8.0 – v0.9.0
PlusCart and UnoCart● 2.3.15 – 2.3.28● git 2025-11● 2.3.32It doesn’t check for count = 0.
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

vcsSleep(3V), vcsJmp3(3V)

vcsLib · December 2026Flow controlvcsNop2n(3V)