Testing for 0
ZF bit is set to 1 if the instruction result is 0 and cleared otherwise.
ZF bit is affected by:
arithmetic instructions (ADD, SUB, MUL, etc.)
logical compare instruction (TEST)
arithmetical compare instruction (CMP)