You are here : assembly8051JB

JB - 8051

The JB instruction branches to the address specified in the second operand if the value of the bit specified in the first operand is 1. The bit that is tested is not modified. No flags are affected by this instruction.


Syntax

JB bit,offset		;3 bytes 2 cycles


Example

;JB
;PC = PC + 3
;IF (bit) = 1
;  PC = PC + offset

JB P1.2, Label


Output / Return Value


Limitations


Alternatives / See Also


Reference