x86 Assembly Language Reference Manual

Exit Print View

Updated: December 2014
 
 

3.2.2 Binary Arithmetic Instructions

The binary arithmetic instructions perform basic integer computions on operands in memory or the general-purpose registers.

Table 3-3  Binary Arithmetic Instructions
Oracle Solaris Mnemonic
Intel/AMD Mnemonic
Description
Notes
adc{bwlq}
ADC
add with carry
adcq valid only under –m64
add{bwlq}
ADD
integer add
addq valid only under –m64
cmp{bwlq}
CMP
compare
cmpq valid only under –m64
dec{bwlq}
DEC
decrement
decq valid only under –m64
div{bwlq}
DIV
divide (unsigned)
divq valid only under –m64
idiv{bwlq}
IDIV
divide (signed)
idivq valid only under –m64
imul{bwlq}
IMUL
multiply (signed)
imulq valid only under –m64
inc{bwlq}
INC
increment
incq valid only under –m64
mul{bwlq}
MUL
multiply (unsigned)
mulq valid only under –m64
neg{bwlq}
NEG
negate
negq valid only under –m64
sbb{bwlq}
SBB
subtract with borrow
sbbq valid only under –m64
sub{bwlq}
SUB
subtract
subq valid only under –m64