TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-90
V2.0, 2007-07
PCP, V2.0
11.11.17 JC, Jump Conditionally
This section describes the conditional jump instructions of the PCP.
JC
Syntax
JC offset6, cc_B
Description
If CONDCB is true, then add the sign-extended value
specified by offset6 to the contents of the PC, and jump to
that address. If CONDCB is false, no operation is performed.
Operation
if (CONDCB = True) then (PC = PC + sign_ext(offset6)) else
NOP
Flags
None
JC.A
Syntax
JC.A #address16, cc_B
Description
If CONDCB is true, then load the value specified by
address16 into the PC, and jump to that address. If
CONDCB is false, no operation is performed.
Operation
if (CONDCB = True) then (PC = address16) else NOP
Flags
None
JC.I
Syntax
JC.I Ra, cc_B
Description
If CONDCB is true, then add the value specified by Ra[15:0]
to the contents of the PC, and jump to that address. Value
Ra[15:0] is treated as a signed 16-bit number. If CONDCB is
false, no operation is performed.
Operation
if (CONDCB = True) then (PC = PC + (R[a][15:0])) else NOP
Flags
None
JC.IA
Syntax
JC.IA Ra, cc_B
Description
If CONDCB is true, then load the value specified by Ra[15:0]
into the PC, and jump to that address. Value Ra[15:0] is
treated as an unsigned 16-bit number. If CONDCB is false,
no operation is performed.
Operation
if (CONDCB = True) then (PC = (R[a][15:0])) else NOP
Flags
None