Intel 80C196NU, 8XC196NP, Microcontroller manual Div, Dest MOD SRC

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 318
Image 318

 

 

 

 

 

 

 

 

 

 

 

INSTRUCTION SET REFERENCE

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

Operation

 

 

 

 

 

Instruction Format

 

 

 

 

 

 

DI

DISABLE INTERRUPTS. Disables

 

 

 

 

 

interrupts. Interrupt calls cannot occur after

DI

 

 

this instruction.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(11111010)

 

Interrupt Enable (PSW.1) 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

 

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-13

Page 318
Image 318
Intel 80C196NU, 8XC196NP, Microcontroller manual Div, Dest MOD SRC