Network, Computer and Programming Resources
Instruction general
(Page:3)
Instruction general - DEC—Decrement by 1
Subtracts 1 from the operand, while preserving the state of the CF flag. The source operand can be a register or a memory location. This instruction allows a loop counter to be updated without disturbing the CF flag. (Use a SUB instruction with an immediate operand of 1 to perform a decrement operation that does updates the CF flag.)