XA User Guide 6-38 4/17/98
ADDC Integer addition with Carry
Syntax: ADDC dest, source
Operation: dest <- dest + src + C
Description: Performs a two’s complement binary addition of the source operand and the
previously generated carry bit with the destination operand. The result is stored in the destination
operand.The source data is not affected by the operation.
If the carry from previous operation is one (C=1), the result is greater than the sum of the operands;
if it is zero (C=0), the result is the exact sum.
This form of addition is intended to support multiple-precision arithmetic. For this use, the carry
bit is first reset, then ADDC is used to add the portions of the multiple-precision values from least-
significant to most-significant.
Size: Byte-Byte, Word-Word
Flags Updated: C, AC, V, N, Z
ADDC Rd, Rs
Bytes: 2
Clocks: 3
Operation: (Rd) <-- (Rd) + (Rs) + (C)
Encoding:
ADDC Rd, [Rs]
Bytes: 2
Clocks: 4
Operation: (Rd) <-- (Rd) + ((WS:Rs)) + (C)
Encoding:
0 0 0 1 SZ 0 0 1 d d d d s s s s
0 0 0 1 SZ 0 1 0 d d d d 0 s s s