Skip to content

Z80InstructionEmulator Class

Definition

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

public sealed class Z80InstructionEmulator

View source

Constructors

Name Description
Z80InstructionEmulator() Initializes a new Z80InstructionEmulator 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 Z80 flags.
Interrupts Gets the Z80 interrupt state.
Registers Gets the Z80 registers.

Methods

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