Correct me if I am wrong.
This is my understanding of JNZ and CMP.
JNZ
CMP
JNZ - The jump WILL take place if the Z Fl
Z
At first it seems as if JNZ means jump if not Zero (0), as in jump if zero flag is 1/set.
But in reality it means Jump (if) not Zero (is set).
If 0 = not set and 1 = set then just remember: JNZ Jumps if the zero flag is not set (0)