EN
vcsPla4Ex(3V)vcsLib manualvcsPla4Ex(3V)
Name

vcsPla4Ex

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

Synopsis
#include "vcsLib.h"

void vcsPla4Ex(uint8_t data);
Description

When the stack pointer points at a TIA register, nothing drives D0–D5 during the PLA read, so the cartridge supplies those bits. That loads A 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 68, 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$100068$1001··$0105··$01062A
1 pla2 dummy read3 stack read4 the cartridge drives D0–D5

served by the cartridgeforced by the cartridgedummy read

Example
vcsPla4Ex(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.32It serves PHP (08) instead of PLA (68).
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

vcsPla4(3V)

vcsLib · December 2026StackvcsPla4Ex(3V)