• Malgas@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 days 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.

    • tiramichu@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      4 days 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

        • Bobo The Great@startrek.website
          link
          fedilink
          arrow-up
          0
          ·
          4 days 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