Intel ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS MANUAL VOLUME 1 REV 2.3 Manual page 1329

Hide thumbs Also See for ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS MANUAL VOLUME 1 REV 2.3:
Table of Contents

Advertisement

ADD—Add
Opcode
04 ib
05 iw
05 id
80 /0 ib
81 /0 iw
81 /0 id
83 /0 ib
83 /0 ib
00 / r
01 / r
01 / r
02 / r
03 / r
03 / r
Description
Adds the first operand (destination operand) and the second operand (source operand)
and stores the result in the destination operand. The destination operand can be a
register or a memory location; the source operand can be an immediate, a register, or a
memory location. When an immediate value is used as an operand, it is sign-extended
to the length of the destination operand format.
The ADD instruction does not distinguish between signed or unsigned operands.
Instead, the processor evaluates the result for both data types and sets the OF and CF
flags to indicate a carry in the signed or unsigned result, respectively. The SF flag
indicates the sign of the signed result.
Operation
DEST  DEST + SRC;
Flags Affected
The OF, SF, ZF, AF, CF, and PF flags are set according to the result.
Additional Itanium System Environment Exceptions
Itanium Reg Faults NaT Register Consumption Abort.
Itanium Mem FaultsVHPT Data Fault, Nested TLB Fault, Data TLB Fault, Alternate Data
Volume 4: Base IA-32 Instruction Reference
Instruction
ADD AL, imm8
ADD AX, imm16
ADD EAX, imm32
ADD r/m8,imm8
ADD r/m16,imm16
ADD r/m32,imm32
ADD r/m16,imm8
ADD r/m32,imm8
ADD r/m8,r8
ADD r/m16,r16
ADD r/m32,r32
ADD r8,r/m8
ADD r16,r/m16
ADD r32,r/m32
TLB Fault, Data Page Not Present Fault, Data NaT Page Consumption
Abort, Data Key Miss Fault, Data Key Permission Fault, Data Access
Rights Fault, Data Access Bit Fault, Data Dirty Bit Fault
Description
Add imm8 to AL
Add imm16 to AX
Add imm32 to EAX
Add imm8 to r/m8
Add imm16 to r/m16
Add imm32 to r/m32
Add sign-extended imm8 to r/m16
Add sign-extended imm8 to r/m32
Add r8 to r/m8
Add r16 to r/m16
Add r32 to r/m32
Add r/m8 to r8
Add r/m16 to r16
Add r/m32 to r32
4:27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itanium architecture 2.3

Table of Contents