M6502StepEmulator Class
Definition
Represents a cycle-accurate M6502 emulator that executes one T-state at a time.
public sealed class M6502StepEmulator
Constructors
| Name | Description |
|---|---|
M6502StepEmulator() |
Initializes a new M6502StepEmulator 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(Action<ActionRequired>, Action) |
Executes a single instruction; used for testing. |
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. |
Step() |
Executes one M6502 T-state. |