
THE 8051 MICROCONTROLLER: THE PROGRAMMER’S PERSPECTIVE 19-27
JC Target Jump on carry to target.
JNC Target Jump on No carry, to target.
These instructions test the carry flag and jump to the target depending on the condi-
tion of the carry flag, as specified.
JZ Target Jump on Zero (A = 0) to target.
JNZ Target Jump on no Zero (A! = 0) to target.
Recollect that there is no Zero flag for 8051. Theses two instructions test the
A register to see if it contains a non-zero number or not and jumps to the target
accordingly.
JB Bit, Target Jump to target if the specified bit is set.
JNB Bit, Target Jump to target if the specified bit is not set.
JBC Bit T