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 × countand takes 2 × count cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:1 nop2 dummy read3 nop4 dummy read5 nopserved 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
Implementation By version Notes Stella ● 7.0● master It does nothing when count is 0. Gopher2600 ● 2022-2023● 2025-04● v0.51.0● v0.53.0● master It 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.32 It 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
- Stella: It does nothing when count is 0.
- Gopher2600: It doesn’t check for count = 0.
- PlusCart and UnoCart: It doesn’t check for count = 0.
- See also
vcsLib · December 2026Flow controlvcsNop2n(3V)