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
Comment on NeW zEaLaNd 🙄
A_norny_mousse@feddit.org 1 day ago
That’s one way “nz flag in z80” makes sense to me. What else could it mean?
tiramichu@sh.itjust.works 1 day ago
A_norny_mousse@feddit.org 1 day ago
whats nz then?
bobo1900@startrek.website 1 day 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 15 hours ago
I believe it is nonzero (“jump if not zero” iirc)
XTL@sopuli.xyz 11 hours ago
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.
Malgas@beehaw.org 12 minutes ago
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.