Skip to content

TestAssertions Enum ​

Definition ​

Flags specifying which aspects of the Z80 processor state should be tested during instruction execution.

c#
public enum TestAssertions

Fields ​

NameDescription
ATest the A register.
AllTest everything.
AllExceptCyclesTest everything except Cycles.
BCTest the BC register pair.
CTest the carry flag, C.
CyclesTest machine cycles.
DETest the DE register pair.
DocumentedFlagsTest the documented flags, C, N, P/V, H, Z and S.
FTest the F register.
FlagsTest all the flags.
HTest the half-carry flag, H.
HaltedTest whether the CPU is in the halted state.
HLTest the HL register pair.
ITest the I register.
IFF1Test the IFF1 interrupt flip-flop.
IFF2Test the IFF2 interrupt flip-flop.
IMTest the interrupt mode.
InterruptsTest all the interrupt-related properties, IFF1, IFF2, IM and Halted.
IOTest both I/O read and write operations.
IOReadsTest I/O read operations.
IOWritesTest I/O write operations.
IXTest the IX register pair.
IYTest the IY register pair.
MemoryTest memory state.
NTest the add/subtract flag, N.
NextRegisterWritesTest writes to Next registers. Z80N only; a Z80 never writes to one.
NoneTest nothing. Kinda pointless really.
PCTest the PC register.
PVTest the parity/overflow flag, P/V.
QTest the internal Q register.
RTest the R register.
RegistersTests all the registers.
RegistersExceptQTests all the registers except Q.
RegistersExceptWZAndQTests all the non-internal registers, that is, all registers except WZ and Q.
STest the sign flag, S.
ShadowAFTest the AF' register pair.
ShadowBCTest the BC' register pair.
ShadowDETest the DE' register pair.
ShadowHLTest the HL' register pair.
SPTest the SP register.
TStatesTest T-states.
WZTest the internal WZ register, sometimes called MEMPTR.
XTest the undocumented X flag, bit 3 of the F register.
YTest the undocumented Y flag, bit 5 of the F register.
ZTest the zero flag, Z.