Motorola CPU32 Bedienungsanleitung Seite 200

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 646
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 199
Integer Instructions
4-96 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA
DIVU, DIVUL Unsigned Divide DIVU, DIVUL
(M68000 Family)
Operation: Destination ÷ Source Destination
Assembler DIVU.W < ea > ,Dn32/16 16r – 16q
Syntax: *DIVU.L < ea > ,Dq 32/32 32q
*DIVU.L < ea > ,Dr:Dq 64/32 32r – 32q
*DIVUL.L < ea > ,Dr:Dq 32/32 32r – 32q
*Applies to MC68020, MC68030, MC68040, CPU32 only.
Attributes: Size = (Word, Long)
Description: Divides the unsigned destination operand by the unsigned source
operand and stores the unsigned result in the destination. The instruction uses one of
four forms. The word form of the instruction divides a long word by a word. The result
is a quotient in the lower word (least significant 16 bits) and a remainder in the upper
word (most significant 16 bits).
The first long form divides a long word by a long word. The result is a long quotient; the
remainder is discarded.
The second long form divides a quad word (in any two data registers) by a long word.
The result is a long-word quotient and a long-word remainder.
The third long form divides a long word by a long word. The result is a long-word quo-
tient and a long-word remainder.
Two special conditions may arise during the operation:
1. Division by zero causes a trap.
2. Overflow may be detected and set before the instruction completes. If the in-
struction detects an overflow, it sets the overflow condition code, and the oper-
ands are unaffected.
Condition Codes:
X Not affected.
N — Set if the quotient is negative; cleared otherwise; undefined if overflow or divide
by zero occurs.
Z Set if the quotient is zero; cleared otherwise; undefined if overflow or divide by
zero occurs.
V Set if division overflow occurs; cleared otherwise; undefined if divide by zero
occurs.
C — Always cleared.
XNZVC
∗∗∗0
Seitenansicht 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 645 646

Kommentare zu diesen Handbüchern

Keine Kommentare