Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>adc add with carry flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

See Also: ADD INC AAA DAA EA Flags

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson