Skip to content

Z80NInstructionEmulator Class

Definition

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

public sealed class Z80NInstructionEmulator

View source

Constructors

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

Methods

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