Intel 8XC196NP, 80C196NU, Microcontroller manual Mulb

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 334
Image 334

 

 

 

 

 

 

 

 

 

 

 

 

INSTRUCTION SET REFERENCE

 

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

 

MUL

MULTIPLY INTEGERS. Multiplies the source

 

DEST, SRC

(2 operands)

and destination integer operands, using

MUL

lreg, waop

 

signed arithmetic, and stores the 32-bit result

 

(11111110) (011011aa) (waop) (lreg)

 

into the destination long-integeroperand.

 

 

 

 

The sticky bit flag is undefined after the

 

 

 

instruction is executed.

 

 

 

 

 

 

 

 

(DEST) (DEST) × (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

V

 

VT

ST

 

 

 

 

 

— —

 

?

 

 

 

 

 

 

 

 

MUL

MULTIPLY INTEGERS. Multiplies the two

 

DEST, SRC1, SRC2

(3 operands)

source integer operands, using signed

MUL

lreg, wreg, waop

 

arithmetic, and stores the 32-bit result into

 

(11111110) (010011aa) (waop) (wreg) (lreg)

 

the destination long-integeroperand. The

 

 

 

 

sticky bit flag is undefined after the instruction

 

 

 

is executed.

 

 

 

 

 

 

 

 

NOTE: (8XC196NU only.) A destination

 

(DEST) (SRC1) × (SRC2)

 

 

 

 

 

 

 

 

address in the range 00H–0FH

 

 

 

 

 

 

 

 

 

 

 

 

 

enables the multiply-accumulate

 

 

 

 

PSW Flag Settings

 

 

 

function. When set, bit 3 of the

 

 

 

 

 

 

 

 

 

 

 

 

 

destination address causes the

 

 

Z

 

N

 

C

V

 

VT

ST

 

 

 

 

 

 

 

 

 

accumulator to be cleared before

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

the results of the multiply are

 

 

 

 

 

 

 

 

 

 

 

 

 

added to the contents of the accu-

 

 

 

 

 

 

 

 

 

 

 

 

 

mulator. For example, if the desti-

 

 

 

 

 

 

 

 

 

 

 

 

 

nation address is 08H, the

 

 

 

 

 

 

 

 

 

 

 

 

 

accumulator is cleared and then

 

 

 

 

 

 

 

 

 

 

 

 

 

the results of the multiply are

 

 

 

 

 

 

 

 

 

 

 

 

 

added. However, if the destination

 

 

 

 

 

 

 

 

 

 

 

 

 

address is 00H, the results of the

 

 

 

 

 

 

 

 

 

 

 

 

 

multiply are added to the current

 

 

 

 

 

 

 

 

 

 

 

 

 

contents of the accumulator.

 

 

 

 

MULB

MULTIPLY SHORT-INTEGERS. Multiplies

 

DEST, SRC

(2 operands)

the source and destination short-integer

MULB

wreg, baop

 

operands, using signed arithmetic, and stores

 

(11111110) (011111aa) (baop) (wreg)

 

the 16-bit result into the destination integer

 

 

 

 

operand. The sticky bit flag is undefined after

 

 

 

the instruction is executed.

 

 

 

 

 

 

(DEST) (DEST) × (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

 

C

V

 

VT

ST

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-29

Page 334
Image 334
Intel 8XC196NP, 80C196NU, Microcontroller manual Mulb