EN
vcsSta3(3V)vcsLib manualvcsSta3(3V)
Name

vcsSta3

Serves STA zp, which writes A to a TIA register or to RAM.

Synopsis
#include "vcsLib.h"

void vcsSta3(uint8_t zeroPage);
Description

It’s the shortest way to write to the TIA. After the write cycle the 6507 goes back to fetching instructions.

vcsSta3(WSYNC) holds the 6507 until the end of the line, and that’s when the ARM has the most time to get the next line ready.

On the bus

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

φ2A12–A0D7–D0R/W$100085$100102$0002A
1 sta zp2 zero page3 the 6507 writes A

served by the cartridgewritten by the 6507

Example
vcsSta3(WSYNC);            /* wait for the end of the line */
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

vcsStx3(3V), vcsSty3(3V), vcsWrite5(3V)

vcsLib · December 2026Loads and storesvcsSta3(3V)