I donât know the z80 specifically, but itâs probably an assembly keyword for a special bit (âflagâ) that indicates if the result of the previous operation was nonzero.
Comment on NeW zEaLaNd đ
A_norny_mousse@feddit.org â¨3⊠â¨weeks⊠ago
Thatâs one way ânz flag in z80â makes sense to me. What else could it mean?
Malgas@beehaw.org â¨2⊠â¨weeks⊠ago
tiramichu@sh.itjust.works â¨3⊠â¨weeks⊠ago
The Z80 part is right, but talking about a flag in the context of the Z80 instruction set it should be quite clear you mean a programming flag not a country flag
A_norny_mousse@feddit.org â¨3⊠â¨weeks⊠ago
whats nz then?
bobo1900@startrek.website â¨3⊠â¨weeks⊠ago
Never programmed on the z80, but a common flag in cpus is Zero or Not Zero (nz), that would be set when the result of an operation is not zero (or zero, depends on the architecture)
For example A = 0 (A being a generic register) would set Z to 1 and NZ to 0, and viceversa for A = 1
zstg@programming.dev â¨3⊠â¨weeks⊠ago
I believe it is nonzero (âjump if not zeroâ iirc)
XTL@sopuli.xyz â¨3⊠â¨weeks⊠ago
www.z80.info/z80sflag.htm
Thereâs no NZ flag. Thereâs the regular Z flag like in most processors. NZ is the condition of zero not being set.
en.wikipedia.org/wiki/Zero_flag
Itâs probably a typo in the question or an actual question by human after seeing something like a JNZ instruction.
tutorials.eeems.ca/Z80ASM/app1c.htm