TestAssertions Enum
Definition
Flags specifying which aspects of the Z80 processor state should be tested during instruction execution.
c#
public enum TestAssertionsFields
| Name | Description |
|---|---|
A | Test the A register. |
All | Test everything. |
AllExceptCycles | Test everything except Cycles. |
BC | Test the BC register pair. |
C | Test the carry flag, C. |
Cycles | Test machine cycles. |
DE | Test the DE register pair. |
DocumentedFlags | Test the documented flags, C, N, P/V, H, Z and S. |
F | Test the F register. |
Flags | Test all the flags. |
H | Test the half-carry flag, H. |
Halted | Test whether the CPU is in the halted state. |
HL | Test the HL register pair. |
I | Test the I register. |
IFF1 | Test the IFF1 interrupt flip-flop. |
IFF2 | Test the IFF2 interrupt flip-flop. |
IM | Test the interrupt mode. |
Interrupts | Test all the interrupt-related properties, IFF1, IFF2, IM and Halted. |
IO | Test both I/O read and write operations. |
IOReads | Test I/O read operations. |
IOWrites | Test I/O write operations. |
IX | Test the IX register pair. |
IY | Test the IY register pair. |
Memory | Test memory state. |
N | Test the add/subtract flag, N. |
NextRegisterWrites | Test writes to Next registers. Z80N only; a Z80 never writes to one. |
None | Test nothing. Kinda pointless really. |
PC | Test the PC register. |
PV | Test the parity/overflow flag, P/V. |
Q | Test the internal Q register. |
R | Test the R register. |
Registers | Tests all the registers. |
RegistersExceptQ | Tests all the registers except Q. |
RegistersExceptWZAndQ | Tests all the non-internal registers, that is, all registers except WZ and Q. |
S | Test the sign flag, S. |
ShadowAF | Test the AF' register pair. |
ShadowBC | Test the BC' register pair. |
ShadowDE | Test the DE' register pair. |
ShadowHL | Test the HL' register pair. |
SP | Test the SP register. |
TStates | Test T-states. |
WZ | Test the internal WZ register, sometimes called MEMPTR. |
X | Test the undocumented X flag, bit 3 of the F register. |
Y | Test the undocumented Y flag, bit 5 of the F register. |
Z | Test the zero flag, Z. |