Infineon Technologies C166S V2 User Manual page 261

16-bit microcontroller
Table of Contents

Advertisement

JB
Group
Syntax
Source Operand(s)
Destination Operand(s)
Operation
IF ((op1) = 1) THEN
ELSE
END IF
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 displacement is a 2s
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 JB instruction. If the specified bit is cleared, program execution
continues normally with the instruction following the JB instruction.
CPU Flags
E
Not affected.
Z
Not affected.
V
Not affected.
C
Not affected.
N
Not affected.
Encoding
Mnemonic
JB
bitaddr
User Manual
Relative Jump if Bit Set
Jump Instructions
JB op1, op2
op1 → BIT
op2 → 8-bit signed displacement
none
(IP) ← (IP) + 2*sign_extend(op2)
Next Instruction
E
Z
-
-
, rel
Q.q
Detailed Instruction Description
V
C
-
-
Format
8A QQ rr q0
8-261
User Manual
C166S V2
N
-
Bytes
4
V 1.7, 2001-01
JB

Advertisement

Table of Contents
loading

Table of Contents