Download Print this page

Siemens SAB 80515 Series User Manual page 165

8-bit single-chip microcontroller family

Advertisement

JC
rel
Function:
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.
Example:
The carry flag is cleared. The instruction sequence
JC
CPL
JC
will set the carry and cause program execution to continue at the instruction
identified by the label LABEL2.
Operation:
JC
(PC) ← (PC) + 2
if (C) = 1
then (PC) ← (PC) + rel
Encoding:
0 1 0 0
Bytes:
2
Cycles:
2
Semiconductor Group
LABEL1
C
LABEL2
0 0 0 0
rel. address
*
165
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k