EN
vcsStx4(3V)vcsLib manualvcsStx4(3V)
Name

vcsStx4

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

Synopsis
#include "vcsLib.h"

void vcsStx4(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 8E 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$10008E$100110$100200$0010X
1 stx abs2 low byte3 high byte4 the 6507 writes X

served by the cartridgewritten by the 6507

Example
vcsStx4(RESP1);
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-11It doesn’t exist.
Known issues
See also

vcsSta4(3V), vcsSty4(3V), vcsSta3(3V)

vcsLib · December 2026Loads and storesvcsStx4(3V)