وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

INC

INC

Usage:  INC     dest                                  Modifies flags: AF OF PF SF ZF

Adds one to destination unsigned binary operand.

Increment Integer


INC reg16                     ; o16 40+r             [8086]

INC reg32                     ; o32 40+r             [386]

INC r/m8                      ; FE /0                [8086]

INC r/m16                     ; o16 FF /0            [8086]

INC r/m32                     ; o32 FF /0            [386]


INC adds 1 to its operand. It does not affect the carry flag: to affect the carry flag, use ADD something,1. INC affects all the other flags according to the result.


This instruction can be used with a LOCK prefix to allow atomic execution.

See also DEC.


Example:

pop ecx | inc ecx | cmp ecx 0 | ja LABEL


INC