<<< INC and DEC Instructions | Index | INC and DEC Example >>> |
Especially useful for incrementing and decrementing counters.
A register is the best place to keep a counter.
The INC and DEC instructions
always treat integers as unsigned values
never update the carry flag CF, which would otherwise (i.e. ADD and SUB) be updated for carries and borrows.
The instructions affect the OF, SF, ZF, AF, and PF flags just like addition and subtraction of one.
<<< INC and DEC Instructions | Index | INC and DEC Example >>> |