Keil Logo

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
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.