EN
vcsPlp4Ex(3V)vcsLib manualvcsPlp4Ex(3V)
Name

vcsPlp4Ex

Serves PLP with the stack in the TIA, and the cartridge puts data on D0–D5 while the 6507 reads.

Synopsis
#include "vcsLib.h"

void vcsPlp4Ex(uint8_t data);
Description

When the stack pointer points at a TIA register, nothing drives D0–D5 during the PLP read, so the cartridge supplies those bits. That loads the flags register with a 6-bit value and, at the same time, undoes the pointer change of an earlier PHA or PHP.

D6 and D7 come from the TIA, as the collision or input bits of that register.

On the bus

It serves 28, D0–D5 = data and takes 4 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:

φ2A12–A0D7–D0R/W$100028$1001··$0105··$01062A
1 plp2 dummy read3 stack read4 the cartridge drives D0–D5

served by the cartridgeforced by the cartridgedummy read

Example
vcsPlp4Ex(0x2A);
Compatibility

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

ImplementationBy versionNotes
Stella– 7.0– masterIt stops emulation with “unimplemented”.
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
Known issues
  • Stella: It stops emulation with “unimplemented”.
See also

vcsPlp4(3V)

vcsLib · December 2026StackvcsPlp4Ex(3V)