Home /Modules/cpu/REGISTERS.md

REGISTERS.md

lib/cpu/6502/REGISTERS.md · 39 line(s) · markdown

6502 Registers

RegisterWidthClassNotes
A8architecturalaccumulator
X8architecturalindex
Y8architecturalindex
S8architecturalstack pointer
PC16architecturalprogram counter
P8statusN/V/B/D/I/Z/C semantics

Status flags

Bit 5 is not modeled as an ordinary programmer-controlled flag.

Internal state

The physical 6502 contains internal latches and buses used during address and data movement. These are not promoted to architectural registers merely because they exist physically.

SLeeLa may model an internal register/latch when it affects:

Sources: