CS Electrical And Electronics
@cselectricalandelectronics

What is ADDC instruction in 8051 microcontroller?

All QuestionsCategory: Embedded SystemWhat is ADDC instruction in 8051 microcontroller?
CS Electrical And Electronics Staff asked 4 years ago

I need short information.

1 Answers
CS Electrical And Electronics Staff answered 4 years ago

It performs addition function with carry. This adds the source byte to the accumulator(A) with carry bit i.e., A = A + byte + CY. If CY prior to this instruction, CY is also added to A. This instruction is the same as to ADD A, byte.

Example:

ADDC A, R4
Add register to A with carry, but puts the sum in the accumulator.