DIV - Unsigned Divide |
* |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
M |
N |
O |
P |
Q |
R |
S |
T |
U |
V |
W |
X |
Y |
Z |
? |
Code | Mnemonic | 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 | 4,294,967,295 (2^32 - 1) |
Operands | Bytes | Clocks | |
r8 | 2 | 17 | NP |
r16 | 2 | 25 | NP |
r32 | 2 | 41 | NP |
mem8 | 2 + d(0 - 2) | 17 | NP |
mem16 | 2 + d(0 - 2) | 25 | NP |
mem32 | 2 + d(0 - 2) | 41 | NP |
implied dividend | operand | quotient | remainder | ||
AX | / | byte | = | AL | AH |
DX:AX | / | word | = | AX | DX |
EDX:EAX | / | dword | = | EAX | EDX |
Flags
ID | unaffected | DF | unaffected |
VIP | unaffected | IF | unaffected |
VIF | unaffected | TF | unaffected |
AC | unaffected | SF | undefined |
VM | unaffected | ZF | undefined |
RF | unaffected | AF | undefined |
NT | unaffected | PF | undefined |
IOPL | unaffected | CF | undefined |
OF | undefined |