
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>dec decrement flags: o d i t s z a p c</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DEC Decrement Flags: O D I T S Z A P C
* * * * *
DEC destination
Logic: destination . destination - 1
This instruction decrements the destination by one. The destination
operand, which may be either a word or a byte, is treated as an
unsigned binary number.
--------------------------------------------------------------------------
Operands Clocks Transfers Bytes Example
reg16 2 - 1 DEC BX
reg8 3 - 2 DEC BL
memory 15(23) + EA 2 2-4 DEC MATRIX[SI]
--------------------------------------------------------------------------
Note: This instruction does not set the carry, so if you
need to decrement a multi-word number, it is better
to use the SUB and SBB instructions.
See Also: SUB SBB AAS DAS EA Flags
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson