Skip to content

M6502TestHarness Class

Definition

Base class for an M6502 emulator test harness. Implement this class to use it with the test suites.

public abstract class M6502TestHarness : TestHarness<Cycle>

View source

Constructors

Name Description
M6502TestHarness()

Properties

Name Description
FlagB Gets or sets the break flag, B.
FlagC Gets or sets the carry flag, C.
FlagD Gets or sets the decimal flag, D.
FlagI Gets or sets the interrupt disable flag, I.
FlagN Gets or sets the negative flag, N.
FlagV Gets or sets the overflow flag, V.
FlagZ Gets or sets the zero flag, Z.
RegisterA Gets or sets the accumulator register.
RegisterP Gets or sets the processor status register.
RegisterPC Gets or sets the program counter.
RegisterS Gets or sets the stack pointer.
RegisterX Gets or sets the X index register.
RegisterY Gets or sets the Y index register.

Methods

Name Description
ExecuteInstruction() Executes a single instruction.