English
Language : 

DR805X Datasheet, PDF (38/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.14. JB
- 38 -
Instruction: JB bit, rel
Function: Jump if bit is set
Description:
If the indicated bit is a one, jump to the address indicated; otherwise
proceed with the next instruction. The branch destination is computed
by adding the signed relative-displacement in the third instruction byte
to the PC, after incrementing the PC to the first byte of the next
instruction. The bit tested is not modified. No flags are affected.
Operation:
(PC) ← (PC) + 3
if (bit) = 1 then
(PC) ← (PC) + rel
Bytes:
3
Cycles:
4
Encoding:
00100000
bit address
relative address
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.