Skip to content

M6502State Class ​

Definition ​

Represents the state of an M6502 processor, including registers, flags, and memory.

c#
public abstract class M6502State

View source

Properties ​

NameDescription
FlagBGets the break flag, B.
FlagCGets the carry flag, C.
FlagDGets the decimal flag, D.
FlagIGets the interrupt disable flag, I.
FlagNGets the negative flag, N.
FlagVGets the overflow flag, V.
FlagZGets the zero flag, Z.
MemoryGets the memory state.
RegisterAGets the accumulator register.
RegisterPGets the processor status register.
RegisterPCGets the program counter.
RegisterSGets the stack pointer.
RegisterXGets the X index register.
RegisterYGets the Y index register.