Keil Logo Arm Logo

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
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 2
Encoding
01110000 offset
Operation
JNZ
PC = PC + 2
IF A <> 0
  PC = PC + offset
Example
JNZ LABEL

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.