• Bobo The Great@startrek.website
    link
    fedilink
    arrow-up
    10
    ·
    1 month 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

    • ZeStigOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      I believe it is nonzero (“jump if not zero” iirc)