EN
vcsPla4(3V)vcsLib manualvcsPla4(3V)
Name

vcsPla4

Serves PLA, so the 6507 pulls A from the stack.

Synopsis
#include "vcsLib.h"

void vcsPla4(void);
Description

It moves the stack pointer back up, undoing an earlier PHA or PHP.

On the bus

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

φ2A12–A0D7–D0R/W$100068$1001··$01FE··$01FF··
1 pla2 dummy read3 stack read4 reads the value

served by the cartridgeanswered by RAM, the TIA or the RIOTdummy read

Example
vcsPla4();
Compatibility

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

ImplementationBy versionNotes
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

vcsPha3(3V), vcsPla4Ex(3V)

vcsLib · December 2026StackvcsPla4(3V)