DR805x Instructions set details
- 40 -
3.16. JC
Instruction:
Function:
JC rel
Jump if carry is set
Description: If the carry flag is set, branch to the address indicated; otherwise
proceed with the next instruction. The branch destination is computed
by adding the signed relative- displacement in the second instruction
byte to the PC, after incrementing the PC twice. No flags are affected.
Operation:
(PC) ← (PC) + 2
if (C) = 1 then
(PC) ← (PC) + rel
Bytes:
2
Cycles:
3 – C=1
2 – C=0
Encoding:
0
1
0
0
0
0
0
0
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.