User’s Manual
C166S V1 SubSystem
Detailed Instruction Set
User’s Manual
6-49
V 1.6, 2001-08
JB
Relative Jump if Bit Set
JB
Group
Jump Instructions
Syntax
JB op1, op2
Source Operand(s)
op1
→
BIT
op2
→
8-bit signed displacement
Destination Operand(s)
none
Operation
IF ((op1) = 1) THEN
(IP)
←
(IP) + 2*sign_extend(op2)
ELSE
Next Instruction
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 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 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
E
Z
V
C
N
-
-
-
-
-
Mnemonic
Format
Bytes
JB
bitaddr
Q.q
, rel
8A QQ rr q0
4
Содержание C166S V1 SubSystem
Страница 10: ...User s Manual C166S V1 SubSystem User s Manual I 6 V 1 6 2001 08...
Страница 16: ...User s Manual C166S V1 SubSystem Introduction User s Manual 1 6 V 1 6 2001 08...
Страница 126: ...User s Manual C166S V1 SubSystem Central Processing Unit User s Manual 3 96 V 1 6 2001 08...
Страница 178: ...User s Manual C166S V1 SubSystem Memory Organization User s Manual 4 52 V 1 6 2001 08...
Страница 206: ...User s Manual C166S V1 SubSystem Instruction Set User s Manual 5 28 V 1 6 2001 08...
Страница 306: ...User s Manual C166S V1 SubSystem Detailed Instruction Set User s Manual 6 100 V 1 6 2001 08...
Страница 362: ...User s Manual C166S V1 SubSystem The External Bus Interface User s Manual 8 40 V 1 6 2001 08...
Страница 452: ...User s Manual C166S V1 SubSystem General Purpose Timer Unit User s Manual 12 44 V 1 6 2001 08...
Страница 454: ...User s Manual C166S V1 SubSystem Instruction Index User s Manual 13 2 V 1 6 2001 08...
Страница 459: ......