Download Print this page

Siemens C16 Series Instruction Set Manual page 74

16-bit cmos single-chip microcontrollers

Advertisement

JB
Syntax
Operation
Data Types
Description
Condition Flags
Addressing Modes
Semiconductor Group
30Mar98@15:00h
Relative Jump if Bit Set
JB
op1, op2
IF (op1) = 1 THEN
(IP) ← (IP) + sign_extend (op2)
ELSE
Next Instruction
END IF
BIT
If the bit specified by op1 is set, program execution continues at the loca-
tion of the instruction pointer, IP, plus the specified displacement, op2.
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 JB
instruction. If the specified bit is clear, the instruction following the JB
instruction is executed.
E
Z
-
-
E Not affected.
Z Not affected.
V Not affected.
C Not affected.
N Not affected.
Mnemonic
JB
bitaddr
Q.q
C166 Family Instruction Set
V
C
N
-
-
-
Format
, rel
8A QQ rr q0
74
Instruction Description
Version 1.2, 12.97
JB
Bytes
4

Hide quick links:

Advertisement

loading