4.2 The Zero flag

This is the same as the zero flag after an addition. Iff the difference from a subtraction or comparison is zero, then the zero flag is set.

Z = d0 + d1 + ⋅⋅⋅dn-1