|
|
От: |
Алексей Владимирович Миронов
|
|
| Дата: | 10.05.03 13:35 | ||
| Оценка: | |||
DIV—Unsigned Divide
Divides (unsigned) the value in the AX register, DX:AX register pair, or EDX:EAX register pair (dividend) by the source operand (divisor) and stores the result in the AX (AH:AL), DX:AX, or EDX:EAX registers.
Operation
IF OperandSize = 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;Real-Address Mode Exceptions
#DE If the source operand (divisor) is 0. If the quotient is too large for the designated register.