inc

8086 and later

Increment by 1

inc reg16 | inc reg32 | inc r/m8 | inc r/m16 | inc r/m32 | inc r/m64 | inc [reg8], r/m8 | inc [reg16], r/m16 | inc [reg32], r/m32 | inc [reg64], r/m64

INC adds 1 to its operand. It does not affect the carry flag: to affect the carry flag, use ADD something,1 (see ADD). 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 (DEC).

Loading...

Forms

Every form of inc the assembler accepts, from NASM's own instruction table. The second column is the processor that introduced the form; a badge marks a form that needs an extension, that is lockable, or that long mode dropped.

FormSinceNotes
inc reg168086nolong
inc reg32386nolong
inc r/m88086lock
inc r/m168086lock
inc r/m32386lock
inc r/m64x86-64locklong
inc [reg8], r/m8x86-64apxlocklong
inc [reg16], r/m16x86-64apxlocklong
inc [reg32], r/m32x86-64apxlocklong
inc [reg64], r/m64x86-64apxlocklong