English
Language : 

M166 Datasheet, PDF (63/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
DIV
16-by-16 Signed Division
DIV
Syntax
Operation
Data Types
Description
DIV
op1
(MDL) ← (MDL) / (op1)
(MDH) ← (MDL) mod (op1)
WORD
Performs a signed 16-bit by 16-bit division of the low order word 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).
Condition Flags
E
Z
V
C
N
0
*
S
0
*
Addressing Modes
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.
Mnemonic
DIV
Rwn
Format
4B nn
Bytes
2
Semiconductor Group
63
Version 1.2, 12.97