EN
vcsSax3(3V)vcsLib manualvcsSax3(3V)
Name

vcsSax3

Serves SAX zp, an illegal opcode that writes A AND X.

Synopsis
#include "vcsLib.h"

void vcsSax3(uint8_t zeroPage);
Description

With two masks in A and X, it gives you a third value without another load.

On the bus

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

φ2A12–A0D7–D0R/W$100087$100108$0008A&X
1 sax zp2 zero page3 the 6507 writes A&X

served by the cartridgewritten by the 6507

Example
vcsLda2(0x0F); vcsLdx2(0x3C);
vcsSax3(COLUPF);           /* writes 0x0C */
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
vcsLib · December 2026Loads and storesvcsSax3(3V)