Skip to content

Z80StepEmulator.ExecuteInstruction Method

Definition

Executes a single instruction; used for testing. Assumes the processor is at the start of an instruction.

public void ExecuteInstruction(Action<ActionRequired> onStepComplete, Action? onBeforeStep = null);

View source

Parameters

Name Type Description
onStepComplete Action<ActionRequired> Called after every step. Use to perform any action required at the end of a step.
onBeforeStep Action Optional function that is called before each step.

Remarks

Will not perform overlapped reads; it applies queued overlap work internally and stops before the next sequence start performs its external bus action. Will be slower than executing steps normally due to resetting the state at the end and delegate overhead from calling onStepComplete.