English
Language : 

SAB80515 Datasheet, PDF (164/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
Instruction Set
JBC
bit,rel
Function:
Jump if bit is set and clear bit
Description:
If the indicated bit is one, branch to the address indicated; otherwise proceed with
the next instruction. In either case, clear the designated bit. The branch destination
is computed by adding the signed relative displacement in the third instruction byte
to the PC, after incrementing the PC to the first byte of the next instruction. No flags
are affected.
Example:
Operation:
Note:
When this instruction is used to test an output pin, the value used as the original
data will be read from the output data latch, not the input pin.
The accumulator holds 56H (01010110B). The instruction sequence
JBC ACC.3,LABEL1
JBC ACC.2,LABEL2
will cause program execution to continue at the instruction identified by the label
LABEL2, with the accumulator modified to 52H (01010010B).
JBC
(PC) ← (PC) + 3
if (bit) = 1
then (bit) ← 0
(PC) ← (PC) + rel
Encoding:
Bytes:
Cycles:
0001 0000
3
2
bit address
rel. address
Semiconductor Group
164