Intel 8XC196K Series User Manual page 452

Table of Contents

Advertisement

Mnemonic
DIV
DIVIDE INTEGERS. Divides the contents of
the destination long-integer operand by the
contents of the source integer word operand,
using signed arithmetic. It stores the quotient
into the low-order word of the destination
(i.e., the word with the lower address) and the
remainder into the high-order word. The
following two statements are performed
concurrently.
(low word DEST)
(high word DEST)
Z
DIVB
DIVIDE SHORT-INTEGERS. Divides the
contents of the destination integer operand
by the contents of the source short-integer
operand, using signed arithmetic. It stores the
quotient into the low-order byte of the
destination (i.e., the word with the lower
address) and the remainder into the high-
order byte. The following two statements are
performed concurrently.
(low byte DEST)
(high byte DEST)
Z
DIVU
DIVIDE WORDS, UNSIGNED. Divides the
contents of the destination double-word
operand by the contents of the source word
operand, using unsigned arithmetic. It stores
the quotient into the low-order word (i.e., the
word with the lower address) of the
destination operand and the remainder into
the high-order word. The following two
statements are performed concurrently.
(low word DEST)
(high word DEST)
Z
Table A-6. Instruction Set (Continued)
Operation
(DEST) / (SRC)
(DEST) MOD (SRC)
PSW Flag Settings
N
C
V
VT
ST
(DEST) / (SRC)
(DEST) MOD (SRC)
PSW Flag Settings
N
C
V
VT
ST
(DEST) / (SRC)
(DEST) MOD (SRC)
PSW Flag Settings
N
C
V
VT
ST
INSTRUCTION SET REFERENCE
Instruction Format
DEST, SRC
DIV
lreg, waop
(11111110) (100011aa) (waop) (lreg)
DEST, SRC
DIVB
wreg, baop
(11111110) (100111aa) (baop) (wreg)
DEST, SRC
DIVU
lreg, waop
(100011aa) (waop) (lreg)
A-13

Advertisement

Table of Contents
loading

Table of Contents