Skip to content

Z80State Class

Definition

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

public abstract class Z80State

View source

Properties

Name Description
FlagC Gets the carry flag, C.
FlagH Gets the half-carry flag, H.
FlagN Gets the add/subtract flag, N.
FlagPV Gets the parity/overflow flag, P/V.
FlagS Gets the sign flag, S.
FlagX Gets the undocumented X flag, bit 3 of the F register.
FlagY Gets the undocumented Y flag, bit 5 of the F register.
FlagZ Gets the zero flag, Z.
Halted Gets whether the CPU is in the halted state.
IFF1 Gets the IFF1 interrupt flip-flop.
IFF2 Gets the IFF2 interrupt flip-flop.
IM Gets the interrupt mode.
Memory Gets the memory state.
RegisterA Gets the A register.
RegisterAF Gets the AF register pair.
RegisterBC Gets the BC register pair.
RegisterDE Gets the DE register pair.
RegisterF Gets the F register.
RegisterHL Gets the HL register pair.
RegisterI Gets the I register.
RegisterIX Gets the IX register pair.
RegisterIY Gets the IY register pair.
RegisterPC Gets the PC register.
RegisterQ Gets the internal Q register.
RegisterR Gets the R register.
RegisterSP Gets the SP register.
RegisterWZ Gets the internal WZ register, sometimes called MEMPTR.
ShadowRegisterAF Gets the AF' register pair.
ShadowRegisterBC Gets the BC' register pair.
ShadowRegisterDE Gets the DE' register pair.
ShadowRegisterHL Gets the HL' register pair.