8051 Instruction Set Manual

JNZ

The JNZ instruction transfers control to the specified address if the value in the accumulator is not 0. If the accumulator has a value of 0, the next instruction is executed. Neither the accumulator nor any flags are modified by this instruction.

See Also: JZ

JNZ offset
CACF0RS1RS0OV P
Bytes2
Cycles2
Encoding
01110000offset
Operation
JNZ
PC = PC + 2
IF A <> 0
  PC = PC + offset
Example
JNZ LABEL