ST10 FAMILY PROGRAMMING MANUAL
81/172
JB
Relative Jump if Bit Set
Syntax
JB
op1, op2
Operation
IF (op1) = 1 THEN
(IP)
<-- (IP) + sign_extend (op2)
ELSE
Next Instruction
END IF
Data Types
BIT
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 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 calcu-
lation is the address of the instruction following the JB instruction. If the specified bit is clear, the instruc-
tion following the JB instruction is executed.
Flags
Addressing Modes
E
Z
V
C
N
-
-
-
-
-
E
Not affected
Z
Not affected
V
Not affected
C
Not affected
N
Not affected
Mnemonic
Format
Bytes
JB
bitaddr
Q.q
, rel
8A QQ rr q0
4
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...