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>inc increment 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]
INC              Increment                           Flags: O D I T S Z A P C
                                                            *       * * * *
INC destination

          Logic:    destination . destination + 1

    INC adds 1 to the destination. The destination, which may be either a
    byte or a word, is considered an unsigned binary number.

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
                           byte(word)
   reg16                       2          -        1     INC BX
   reg8                        3          -        2     INC BL
   memory                 15(23) + EA     2       2-4    INC THETA[BX]
  --------------------------------------------------------------------------

       Note:          This instruction does not set the carry flag.  If
                      you need to add 1 to a multi-word number, it is
                      better to use the ADD and ADC instructions instead.

See Also: ADD ADC AAA DAA DEC EA Flags

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