Skip to content

Z80State Class ​

Definition ​

Represents the state of a Z80 processor, including registers, flags, and memory.

c#
public abstract class Z80State

View source

Properties ​

NameDescription
FlagCGets the carry flag, C.
FlagHGets the half-carry flag, H.
FlagNGets the add/subtract flag, N.
FlagPVGets the parity/overflow flag, P/V.
FlagSGets the sign flag, S.
FlagXGets the undocumented X flag, bit 3 of the F register.
FlagYGets the undocumented Y flag, bit 5 of the F register.
FlagZGets the zero flag, Z.
HaltedGets whether the CPU is in the halted state.
IFF1Gets the IFF1 interrupt flip-flop.
IFF2Gets the IFF2 interrupt flip-flop.
IMGets the interrupt mode.
MemoryGets the memory state.
RegisterAGets the A register.
RegisterAFGets the AF register pair.
RegisterBCGets the BC register pair.
RegisterDEGets the DE register pair.
RegisterFGets the F register.
RegisterHLGets the HL register pair.
RegisterIGets the I register.
RegisterIXGets the IX register pair.
RegisterIYGets the IY register pair.
RegisterPCGets the PC register.
RegisterQGets the internal Q register.
RegisterRGets the R register.
RegisterSPGets the SP register.
RegisterWZGets the internal WZ register, sometimes called MEMPTR.
ShadowRegisterAFGets the AF' register pair.
ShadowRegisterBCGets the BC' register pair.
ShadowRegisterDEGets the DE' register pair.
ShadowRegisterHLGets the HL' register pair.