EN
vcsSta4(3V)vcsLib manualvcsSta4(3V)
Name

vcsSta4

Serves STA with an absolute address, which does the same as the zero-page version one cycle later.

Synopsis
#include "vcsLib.h"

void vcsSta4(uint16_t address);
Description

It makes a write land one cycle later, for example a RESP0 that has to hit an exact position.

Not every implementation uses the high byte, so it’s safest to pass only zero-page addresses. The Chameleon template’s header declares it with uint8_t.

On the bus

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

φ2A12–A0D7–D0R/W$10008D$100110$100200$0010A
1 sta abs2 low byte3 high byte4 the 6507 writes A

served by the cartridgewritten by the 6507

Example
vcsSta4(RESP0);            /* 4 cycles instead of 3 */
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◐ masterIt only uses the low byte and serves 00 as the high byte, so it only works on zero page.
Test7800◐ 2025◐ v0.8.0 – v0.9.0Same as Gopher2600, zero page only.
PlusCart and UnoCart● 2.3.15 – 2.3.28● git 2025-11● 2.3.32
Chameleon Cart● 2025-10-23Declared with uint8_t, but it uses the full 16-bit address.
Chameleon Cart, alternative firmware● 2026-11-28
Newbroo Wild Cart and Decker? 2026
VCSIDE ACE adapter◐ 2026-11Only vcsSta4 exists, and only for zero page.
Known issues
See also

vcsStx4(3V), vcsSty4(3V), vcsSta3(3V)

vcsLib · December 2026Loads and storesvcsSta4(3V)