x86 Assembly Language Reference Manual

Increment by 1 (inc)

inc{bwl} 		r/m[8|16|32]

r/m[8|16|32] + 1 -> r/m[8|16|32]


Adds 1 to the operand and does not change the carry flag. Use the add instruction with an immediate value of 1 to change the carry flag,.


Add 1 to the contents of the byte at the effective address (addressed by the ESI register plus an offset of 1):

incb 1(%esi)

Add 1 to the 16-bit contents of the AX register:

incw %ax

Add 1 to the 32-bit contents at the effective address (addressed by the EDI register):

incl 4(%edi)