![Intel ITANIUM ARCHITECTURE Manual Download Page 98](http://html.mh-extra.com/html/intel/itanium-architecture/itanium-architecture_manual_2073403098.webp)
Volume 4: Base IA-32 Instruction Reference
4:91
DIV—Unsigned Divide
Description
Divides (unsigned) the value in the AL, AX, or EAX register (dividend) by the source
operand (divisor) and stores the result in the AX, DX:AX, or EDX:EAX registers. The
source operand can be a general-purpose register or a memory location. The action of
this instruction depends on the operand size, as shown in the following table:
Non-integral results are truncated (chopped) towards 0. The remainder is always less
than the divisor in magnitude. Overflow is indicated with the #DE (divide error)
exception rather than with the CF flag.
Operation
IF SRC = 0
THEN #DE; (* divide error *)
FI;
IF OpernadSize = 8 (* word/byte operation *)
THEN
temp
AX / SRC;
IF temp > FFH
THEN #DE; (* divide error *) ;
ELSE
AL
temp;
AH
AX MOD SRC;
FI;
ELSE
IF OpernadSize = 16 (* doubleword/word operation *)
THEN
temp
DX:AX / SRC;
IF temp > FFFFH
THEN #DE; (* divide error *) ;
ELSE
AX
temp;
DX
DX:AX MOD SRC;
FI;
Opcode
Instruction
Description
F6 /6
DIV
r/m8
Unsigned divide AX by
r/m8
; AL
Quotient,
AH
Remainder
F7 /6
DIV
r/m16
Unsigned divide DX:AX by
r/m16
; AX
Quotient,
DX
Remainder
F7 /6
DIV
r/m32
Unsigned divide EDX:EAX by
r/m32
doubleword;
EAX
Quotient, EDX
Remainder
Operand Size
Dividend
Divisor
Quotient
Remainder
Maximum
Quotient
Word/byte
AX
r/m8
AL
AH
255
Doubleword/word
DX:AX
r/m16
AX
DX
65,535
Quadword/doubleword
EDX:EAX
r/m32
EAX
EDX
2
32
1
Summary of Contents for ITANIUM ARCHITECTURE
Page 1: ......
Page 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Page 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Page 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Page 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Page 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Page 604: ......