English
Language : 

DR805X Datasheet, PDF (39/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.15. JBC
- 39 -
Instruction: JBC bit, rel
Function: Jump if bit is set and clear bit
Description:
If the indicated bit is one, branch to the address indicated; otherwise
proceed with the next instruction. In either case, clear the designated
bit. 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. No flags are affected.
Note:
When this instruction is used to test an output pin, the value used as the
original data will be read from the output data latch, not the input pin.
Operation:
(PC) ← (PC) + 3
if (bit) = 1 then
(bit) ← 0
(PC) ← (PC) + rel
Bytes:
3
Cycles:
4
Encoding:
00010000
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.