8051 Instruction Set Manual

ADDC

The ADDC instruction adds a byte value and the value of the carry flag to the accumulator. The results of the addition are stored back in the accumulator. Several of the flag registers are affected.

See Also: ADD, SUBB

ADDC A, #immediate
CACF0RS1RS0OV P
Bytes2
Cycles1
Encoding
00110100immediate
Operation
A = A + C + immediate
Example
ADDC A, #23h
ADDC A, @Ri
CACF0RS1RS0OV P
Bytes1
Cycles1
Encoding
0011011i
Operation
A = A + C + (Ri)
Example
ADDC A, @R0
ADDC A, direct
CACF0RS1RS0OV P
Bytes2
Cycles1
Encoding
00110101direct
Operation
A = A + C + (direct)
Example
ADDC A, 30h
ADDC A, Rn
CACF0RS1RS0OV P
Bytes1
Cycles1
Encoding
00111nnn
Operation
A = A + C + Rn
Example
ADDC A, R5