Divide
(DR)
(D)
General Description
Format
(RR)
(RX)
Condition Code
Interrupt
Action
Fixed-Point
Insfiructions
• The double-word operand (dividend) specified by
the
first
address
(R
1
)
is divided by
the
operand (divisor) specified
by
the
second address
(R
2
or
X
2
/B
2
/D
2
).
The quotient
and
remainder
replace
the
double-word
operand
in
the registers specified
by
the
first address
(R
1
).
The
register
specified
by
the
first address
must
be
the
even-numbered
register
of
an
even/odd pair.
I
(DR)
ID
Rl
R2
0
7
8 11
12
15
I
(D)
5D
Rl
X
2
B2
0
7
8
11
12
15
16
19
20
31
• Unchanged.
•
Address
error:
Addressing
(RX
format).
Specification.
Divide
Error.
Notes • 1.
The
dividend, a 64-bit signed integer, is replaced
by
a 32-bit signed
quotient
and
a 32-bit signed
remainder;
the
remainder
is
placed
in
the
even-numbered
register
and
the
quotient is placed
in
the
odd-
numbered register. The divisor is a 32-bit signed
integer
and
is
unaltered.
2. A divide
error
interrupt
occurs when
the
magnitude
of
the
dividend
to
the
divisor is such
that
the quotient
cannot
be expressed
by
a
32-bit signed integer. (The divisor
must
be
greater
in absolute value
than
the
first word
of
the dividend.)
3. The sign
of
the
quotient is determined algebraically except
that
a
zero quotient
as
a·
zero
remainder
is always positive.
4. The
remainder
has
the
same
sign
as
the
dividend.
144