EDIV Instruction

Purpose:To perform extended-precision division
Format:opcode divr.rl, divd.rq, quo.wl, rem.wl
Operation:quo <- divd/divr;
rem <- remainder(divd/divr);
Condition
Codes:
N <- quo LSS 0;
Z <- quo EQL 0;
V <- integer overflow OR divr equals 0;
C <- 0;
Exceptions:Integer Overflow
Divide by Zero
Opcodes:
78EDIVExtended Divide
Description: The dividend operand is divided by the divisor operand; the quotient operand is replaced by the quotient and the remainder operand is replaced by the remainder.
Notes:
1.
The division is performed such that the remainder operand (unless it is 0) has the same sign as the dividend operand.
2.
On overflow, the operands are affected as in 3 below.
3.
If the divisor operand is 0, then the quotient operand is replaced by bits 31:0 of the dividend operand, and the remainder operand is replaced by 0.