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
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
00110100 immediate
Operation
A = A + C + immediate
Example
ADDC A, #23h
ADDC A, @Ri
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
0011011i
Operation
A = A + C + (Ri)
Example
ADDC A, @R0
ADDC A, direct
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
00110101 direct
Operation
A = A + C + (direct)
Example
ADDC A, 30h
ADDC A, Rn
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
00111nnn
Operation
A = A + C + Rn
Example
ADDC A, R5