Motorola HC12 Refrence Manual page 154

Table of Contents

Advertisement

IDIV
Operation:
(D)
Description:
Divides an unsigned 16-bit dividend in double accumulator D by an un-
signed 16-bit divisor in index register X, producing an unsigned 16-bit
quotient in X, and an unsigned 16-bit remainder in D. If both the divisor
and the dividend are assumed to have radix points in the same positions,
the radix point of the quotient is to the right of bit zero. In the case of di-
vision by zero, the quotient is set to $FFFF, and the remainder is indeter-
minate.
Condition Codes and Boolean Formulas:
S
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
IDIV
MOTOROLA
6-94
Integer Divide
÷
(X) ⇒ X; Remainder ⇒ D
X
H
I
N
Z
Set if quotient is $0000; cleared otherwise.
0; Cleared.
X15 • X14 • X13 • X12 •... • X3 • X2 • X1 • X0
Set if denominator was $0000; cleared otherwise.
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
0
Object Code
18 10
IDIV
Cycles
Access Detail
12
OffffffffffO
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents