5.4 Zero flag

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:

ConditionZero Flag Value
!= 01’ (true)
== 00’ (false)