You are here : assembly8051JCB

JCB - 8051

The JBC instruction branches to the address specified in the second operand if the value of the bit specified in the first operand is 1.Otherwise, execution continues with the next instruction.

If the bit specified in the first operand is set, it is cleared. No flags are affected by this instruction.

Note : When this instruction is used to modify an output port, the value used as the port data is read from the output data latch, not the input pins of the port.


Syntax

JBC bit,offset


Example

JBC 44h		;3 bytes 2 cycles


Output / Return Value


Limitations


Alternatives / See Also


Reference