You are here : assembly8086DEC

DEC - 8086

Decrements Registrer or memory value by 1.

Algorithm : 

operand = operand - 1


Syntax

DEC REG
DEC memory


Example

MOV AL, 255  ; AL = 0FFh (255 or -1)
DEC AL       ; AL = 0FEh (254 or -2)
RET


Output / Return Value


Limitations


Alternatives / See Also


Reference