The Zero Flag is a single-bit register used for conditional branching
and control flow decisions.
It stores the result of comparison and test operations,
enabling the implementation of ‘if’ and ‘while’.
The Zero Flag follows this logic:
| Condition | Zero Flag Value |
|---|---|
| != 0 | ‘1’ (true) |
| == 0 | ‘0’ (false) |