TC1796
System Units (Vol. 1 of 2)
Peripheral Control Processor (PCP)
User’s Manual
11-80
V2.0, 2007-07
PCP, V2.0
a 40-bit unsigned multiply and then shifts this result right by 8 bits (discards the least
significant 8 bits of the 40-bit result).
The DSTEP instruction also has some conditions stipulated regarding input values to the
instruction. Use of the pseudo-code model for the DSTEP instruction with invalid input
values will yield an invalid result.
11.11.5
ADD, 32-Bit Addition
This section describes the ADD instructions of the PCP.
ADD
Syntax
ADD Rb, Ra, cc_A
Description
If the condition CONDCA is true, then add the contents of
register Ra to the contents of register Rb; place the result in
Rb. If CONDCA is false, no operation is performed.
Operation
if (CONDCA = True) then R[b] = R[b] + R[a] else NOP
Flags
N, Z, V, C
ADD.I
Syntax
ADD.I Ra, #imm6
Description
Add the zero-extended immediate value imm6 to the
contents of register Ra; place the result in Ra.
Operation
R[a] = R[a] + zero_ext(imm6)
Flags
N, Z, V, C
ADD.F
Syntax
ADD.F Rb, [Ra], Size
Description
Add the contents of the address location specified by the
contents of register Ra to the contents of register Rb; place
the result in Rb.
Note: Byte and Half-word values are zero-extended.
Operation
R[b] = R[b] + zero_ext(FPI[R[a]])
Flags
N, Z, V, C
ADD.PI
Syntax
ADD.PI Ra, [#offset6]
Description
Add the contents of the PRAM location specified by the
addition of contents of the PRAM Data Pointer, shifted left by
six bits, and the zero-extended 6-bit value offset6 to the
contents of register Ra; place the result in Ra.
Operation
R[a] = R[a] + PRAM[(DPTR<<6) + zero_ext(#offset6)]
Flags
N, Z, V, C