ADC ADD WITH CARRY ADC
Operation: | Flags Affected: |
if (CF) = 1 then (DEST) +- (LSRC) | AF, CF, OF, PF, SF, ZF |
+ (RSRC) + 1 |
|
else (DEST) +- (LSRC) + (RSRC) |
|
Description:
ADC destination, source
ADC (Add with Carry) sums the operands, which may be bytes or words, adds one if CF is set and replaces the destination operand with the result. Both operands may be signed or unsigned binary numbers (see AAA and DAA). ADC updates AF, CF, OF, PF, SF and ZF. Since ADC incorporates a carry from a previous operation, it can be used to write routines to add numbers longer than 16 bits.