DIVU
Syntax
Operation
Data Types
Description
Performs an unsigned 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
E
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.
Addressing Modes
Mnemonic
DIVU
16-by-16 Unsigned Division
DIVU
(MDL)
(MDH)
WORD
Z
*
Rw
n
ST10 FAMILY PROGRAMMING MANUAL
op1
<-- (MDL) / (op1)
<-- (MDL) mod (op1)
V
S
Format
5B nn
C
N
0
*
Bytes
2
73/172
Need help?
Do you have a question about the ST10 Series and is the answer not in the manual?
Questions and answers