Skip to content

Z80ExpectedState Class ​

Definition ​

Represents the expected state of a Z80 after executing an InstructionTestCase.

c#
public class Z80ExpectedState : Z80State

View source

Constructors ​

NameDescription
Z80ExpectedState()

Properties ​

NameDescription
CyclesGets the expected list of cycles that occurred during instruction execution.
IOWritesGets the expected list of I/O write events that occurred during instruction execution.
NextRegisterWritesGets the expected list of Next register writes that occurred during instruction execution. Z80N only; a Z80 never writes to one. The register number is the port of the IOEvent.
TStatesGets the expected number of T-states taken to execute the instruction.

Methods ​

NameDescription
Assert(TestAssertions, Z80TestHarness)Asserts that the actual Z80 state matches the expected state according to the specified assertions.