Intel 80C196NU manual Mulub, Negate INTEGER. Negates the value, Dest ← Dest PSW Flag Settings

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 336
Image 336

INSTRUCTION SET REFERENCE

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

Operation

 

 

 

 

Instruction Format

MULUB

MULTIPLY BYTES, UNSIGNED. Multiplies

 

DEST, SRC

(2 operands)

the source and destination operands, using

MULUB

wreg, baop

 

unsigned arithmetic, and stores the word

 

(011111aa) (baop) (wreg)

 

result into the destination operand. The sticky

 

 

 

 

bit flag is undefined after the instruction is

 

 

 

executed.

 

 

 

 

 

 

 

 

 

(DEST) (DEST) × (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

— —

?

 

 

 

 

MULUB

MULTIPLY BYTES, UNSIGNED. Multiplies

(3 operands)

the two source byte operands, using

 

unsigned arithmetic, and stores the word

 

result into the destination operand. The sticky

 

bit flag is undefined after the instruction is

 

executed.

 

 

 

 

 

 

 

 

(DEST) (SRC1) × (SRC2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

Z

N

C

V

 

VT

ST

 

 

 

— —

 

?

 

 

DEST, SRC1, SRC2

MULUB wreg, breg, baop (010111aa) (baop) (breg) (wreg)

NEG

NEGATE INTEGER. Negates the value of the

 

integer operand.

 

 

 

 

 

 

(DEST) – (DEST)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

NEG wreg (00000011) (wreg)

NEGB

NEGATE SHORT-INTEGER. Negates the

 

 

value of the short-integeroperand.

NEGB breg

 

(DEST) – (DEST)

 

 

 

 

 

 

 

 

 

(00010011) (breg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

 

NOP

NO OPERATION. Does nothing. Control

 

passes to the next sequential instruction.

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

Z

N

C

V

VT

ST

 

 

 

— —

 

 

NOP (11111101)

A-31

Page 336
Image 336
Intel 80C196NU, 8XC196NP, Microcontroller manual Mulub, Negate INTEGER. Negates the value, Dest ← Dest PSW Flag Settings