8086 DEC Instruction Edit

Murugan Andezuthu Dharmaratnam | 13 February 2021 | 2742

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


operand = operand - 1

Types of operands supported

Instruction	Operands

Sample Code

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