INSTRUCTION SET REFERENCE

 

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

Operation

 

 

 

 

 

Instruction Format

 

 

 

 

DIV

DIVIDE INTEGERS. Divides the contents of

 

DEST, SRC

 

the destination long-integeroperand by the

DIV

lreg, waop

 

contents of the source integer word operand,

 

(11111110) (100011aa) (waop) (lreg)

 

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) (DEST) / (SRC)

 

 

 

(high word DEST)

(DEST) MOD (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

 

V

VT

 

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIVB

DIVIDE SHORT-INTEGERS. Divides the

 

DEST, SRC

 

contents of the destination integer operand

DIVB

wreg, baop

 

by the contents of the source short-integer

 

(11111110) (100111aa) (baop) (wreg)

 

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) (DEST) / (SRC)

 

 

 

(high byte DEST)

(DEST) MOD (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

 

V

VT

 

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIVU

DIVIDE WORDS, UNSIGNED. Divides the

 

DEST, SRC

 

contents of the destination double-word

DIVU

lreg, waop

 

operand by the contents of the source word

 

(100011aa) (waop) (lreg)

 

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) (DEST) / (SRC)

 

 

 

(high word DEST)

(DEST) MOD (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

 

V

VT

 

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-13

Page 402
Image 402
Intel 8XC196MD, 8XC196MH, 8XC196MC manual ← Dest MOD SRC