s

8086 DEC Instruction edit button Edit

author
Murugan Andezuthu Dharmaratnam | calendar 13 February 2021 | 4460

DEC is an arithmetic instruction that is used to decrement the destination register or memory location by 1.

The destination can be a general-purpose register or a memory location. and it can be a byte or a word.

Following flags are affected
AF, OF, PF, SF, and ZF but CF is not affected

Algorithm:

operand = operand - 1


Types of operands supported

Instruction	Operands
----------------------------
INC		REG
                memory

Sample Code

mov bx,100d
dec bx      ; Value of bx will be 99 decimal