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 hiand takes 4 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:1 stx abs2 low byte3 high byte4 the 6507 writes Xserved by the cartridgewritten by the 6507
- Example
vcsStx4(RESP1);- Compatibility
● complete ◐ works with differences ○ exists but does nothing – missing ? no data
Implementation By version Notes Stella ● 7.0● master Gopher2600 ◐ 2022-2023◐ 2025-04◐ v0.51.0◐ v0.53.0◐ master It 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.0 Same as Gopher2600, zero page only. PlusCart and UnoCart ● 2.3.15 – 2.3.28● git 2025-11● 2.3.32 Chameleon Cart ● 2025-10-23 Declared 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-11 It doesn’t exist. - Known issues
- Gopher2600: It only uses the low byte and serves 00 as the high byte, so it only works on zero page.
- Test7800: Same as Gopher2600, zero page only.
- Chameleon Cart: Declared with uint8_t, but it uses the full 16-bit address.
- VCSIDE ACE adapter: It doesn’t exist.
- See also Some implementations of vcsSta4 only use the low byte.
- See also
vcsLib · December 2026Loads and storesvcsStx4(3V)