JBC branches to the address indicated by addr if the the bit indicated by bit_addr is set. Before jumping to the addr it clears that bit. If the bit is not set then program execution continues with the next instruction.
Syntax : JBC bit_addr,addr
Example : JBC P1.3,krm
MOV A,R0
It will jump to krm if the P1.3 is set otherwise it will perform the next instruction MOV A,R0.
Syntax : JBC bit_addr,addr
Example : JBC P1.3,krm
MOV A,R0
It will jump to krm if the P1.3 is set otherwise it will perform the next instruction MOV A,R0.
- Instruction
- Opcode
- Bytes
- Flags
- JBC bit_addr,addr
- 0x10
- 3
- None