ADC Add with Carry Flags: O D I T S Z A P C
* * * * * *
ADC destination,source
Logic: destination destination + source + CF
ADC adds the operands, adds 1 if the Carry Flag is set, and places the
resulting sum in destination. Both operands may be bytes or words, and
both may be signed or unsigned binary numbers.
--------------------------------------------------------------------------
Operands Clocks Transfers Bytes Example
byte(word)
register, register 3 - 2 ADC BX,SI
register, immediate 4 - 3-4 ADC CX,128
accumulator, immediate 4 - 2-3 ADC AL,10
register, memory 9(13) + EA 1 2-4 ADC DX,RESULT
memory, register 16(24) + EA 2 2-4 ADC BETA,DI
memory, immediate 17(25) + EA 2 3-6 ADC GAMMA,16h
--------------------------------------------------------------------------
Note: ADC is useful for adding numbers that are larger
than 16 bits, since it adds a carry from a previous
operation.
Seealso:
This page last updated on Fri Nov 30 10:49:50 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster