ST10 FAMILY PROGRAMMING MANUAL
70/172
DIV
16-by-16 Signed Division
Syntax
DIV
op1
Operation
(MDL)
<-- (MDL) / (op1)
(MDH)
<-- (MDL) mod (op1)
Data Types
WORD
Description
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).
Flags
Addressing Modes
E
Z
V
C
N
0
*
S
0
*
E
Always cleared.
Z
Set if result equals zero. Cleared otherwise.
V
Set if an arithmetic overflow occurred, i.e. the result cannot be represented 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
Format
Bytes
DIV
Rw
n
4B nn
2
Содержание ST10 Series
Страница 2: ......
Страница 4: ...ST10 FAMILY PROGRAMMING MANUAL 2 172...