Skip to content

M6502InstructionEmulator Class

Definition

Represents a M6502 emulator that executes one complete instruction at a time.

public sealed class M6502InstructionEmulator

View source

Constructors

Name Description
M6502InstructionEmulator() Initializes a new M6502InstructionEmulator instance.

Fields

Name Description
SerializedSize The number of bytes required to serialize the emulator state.

Properties

Name Description
Address Gets the address for the current external bus action.
Data Gets or sets the data value for the current external bus action.
Flags Gets the M6502 flags.
Interrupts Gets the M6502 interrupt state.
Registers Gets the M6502 registers.

Methods

Name Description
Deserialize(ReadOnlySpan<Byte>) Deserializes a M6502 CPU state.
Deserialize(Stream) Deserializes a M6502 CPU state.
ExecuteInstruction<THandler>(THandler) Executes one complete instruction or scheduled sequence.
Reset() Resets the M6502 CPU state.
Restore(ReadOnlySpan<Byte>) Restores this emulator from a serialized M6502 CPU state.
Restore(Stream) Restores this emulator from a serialized M6502 CPU state.
Serialize(Span<Byte>) Serializes this emulator's M6502 CPU state.
Serialize(Stream) Serializes this emulator's M6502 CPU state.