
30Mar98@15:00h
Semiconductor Group
64
Version 1.2, 12.97
C166 Family Instruction Set
Instruction Description
DIVL
32-by-16 Signed Division
DIVL
Syntax
DIVL op1
Operation
(MDL)
←
(MD) / (op1)
(MDH)
←
(MD) mod (op1)
Data Types
WORD, DOUBLEWORD
Description
Performs an extended signed 32-bit by 16-bit division of the two words
stored in the MD register by the source word operand op1. The signed
quotient is then stored in the low order word of the MD register (MDL) and
the remainder is stored in the high order word of the MD register ( MDH).
E Always cleared.
Z Set if result equals zero. Cleared otherwise.
V Set if an arithmetic overflow occurred, ie. the result cannot be repre-
sented in a word data type, or if the divisor (op1) was zero. Cleared
otherwise.
C Always cleared.
N Set if the most significant bit of the result is set. Cleared otherwise.
Addressing Modes
Mnemonic
Format
Bytes
DIVL
Rw
n
6B nn
2
Condition Flags
E
Z
V
C
N
0
*
S
0
*