XA User Guide 6-98 4/17/98
JB Relative Jump if bit set
Syntax: JB bit, rel8
Operation: (PC) <-- (PC) + 4
if (bit) = 1 then
(PC) <-- (PC + rel8*2);
(PC.0) <-- 0
Description: If the specified bit is a one, program execution jumps at the location of the PC, plus
the specified displacement. If the specified bit is clear, the instruction following JB is executed.The
branch range is +254 bytes to -256 bytes, with the limitation that the target address is word aligned
in code memory.
Note: Refer to section 6.3 for details of jump range
Size: Bit
Flags Updated: none
Bytes:4
Clocks: 10t/6nt
Encoding:
byte 3: lower 8 bits of bit address
byte 4: rel8
1 0 0 1 0 1 1 1
1 0 0 0 0 0 bit: 2