Skip to content

M6502TestHarness Class ​

Definition ​

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

c#
public abstract class M6502TestHarness : TestHarness<Cycle>

View source

Constructors ​

NameDescription
M6502TestHarness()

Properties ​

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

Methods ​

NameDescription
ExecuteInstruction()Executes a single instruction.