ST10 FAMILY PROGRAMMING MANUAL
JBC
Syntax
Operation
Data Types
Description
If the bit specified by op1 is set, program execution continues at the location of the instruction pointer, IP,
plus the specified displacement, op2. The bit specified by op1 is cleared, allowing implementation of
semaphore operations. The displacement is a two's complement number which is sign extended and
counts the relative distance in words. The value of the IP used in the target address calculation is the
address of the instruction following the JBC instruction. If the specified bit was clear, the instruction follow-
ing the JBC instruction is executed.
Flags
E
0
E
Always cleared
Z
Contains logical negation of the previous state of the specified bit.
V
Always cleared
C
Always cleared
N
Contains the previous state of the specified bit.
Addressing Modes
Mnemonic
JBC
bitaddr
82/172
Relative Jump if Bit Set & Clear Bit
JBC
op1, op2
IF (op1) = 1 THEN
(op1) = 0
(IP)
<-- (IP) + sign_extend (op2)
ELSE
Next Instruction
END IF
BIT
Z
B
, rel
Q.q
V
0
Format
AA QQ rr q0
C
N
0
B
Bytes
4
Need help?
Do you have a question about the ST10 Series and is the answer not in the manual?
Questions and answers