8086 DEC Instruction Edit
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 - 1Types of operands supported
Instruction Operands ---------------------------- INC REG memorySample Code
mov bx,100d dec bx ; Value of bx will be 99 decimal