Keil Logo

JB

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.

See Also: JNB

JB bit, offset
C AC F0 RS1 RS0 OV   P
Bytes 3
Cycles 2
Encoding
00100000 bit offset
Operation
JB
PC = PC + 3
IF (bit) = 1
  PC = PC + offset
Example
JB P1.2 LABEL
  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.