Intel 8XC196NP, 80C196NU, Microcontroller manual Mnemonic, Dest ← not Dest

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 337
Image 337

8XC196NP, 80C196NU USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

Operation

 

 

 

 

 

Instruction Format

 

 

 

 

 

NORML

NORMALIZE LONG-INTEGER. Normalizes

 

SRC, DEST

 

the source (leftmost) long-integer operand.

NORML

lreg, breg

 

(That is, it shifts the operand to the left until

 

(00001111) (breg) (lreg)

 

its most significant bit is “1” or until it has

 

 

 

 

performed 31 shifts). If the most significant

 

 

 

bit is still “0” after 31 shifts, the instruction

 

 

 

stops the process and sets the zero flag. The

 

 

 

instruction stores the actual number of shifts

 

 

 

performed in the destination (rightmost)

 

 

 

operand.

 

 

 

 

 

 

 

 

 

 

 

(COUNT) 0

 

 

 

 

 

 

 

 

 

 

do while

 

 

 

 

 

 

 

 

 

 

 

(MSB (DEST) = 0) AND (COUNT) < 31)

 

 

 

 

(DEST) (DEST) × 2

 

 

 

 

 

 

 

(COUNT) (COUNT) + 1

 

 

 

 

 

 

end_while

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

 

Z

N

C

 

V

VT

 

ST

 

 

 

 

 

?

0

 

 

 

 

 

 

 

 

 

NOT

COMPLEMENT WORD. Complements the

 

 

 

value of the word operand (replaces each “1”

NOT

wreg

 

with a “0” and each “0” with a “1”).

 

 

 

 

 

 

 

(00000010) (wreg)

 

(DEST) NOT (DEST)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

 

Z

N

C

 

V

VT

 

ST

 

 

 

 

 

0

 

0

 

 

 

 

 

 

 

 

NOTB

COMPLEMENT BYTE. Complements the

 

 

 

value of the byte operand (replaces each “1”

NOTB

breg

 

with a “0” and each “0” with a “1”).

 

 

 

 

 

 

 

(00010010) (breg)

 

(DEST) NOT (DEST)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

 

Z

N

C

 

V

VT

 

ST

 

 

 

 

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-32

Page 337
Image 337
Intel 8XC196NP, 80C196NU, Microcontroller manual Mnemonic, Dest ← not Dest