INSTRUCTION SET REFERENCE

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

Operation

 

 

 

 

 

Instruction Format

 

 

 

 

NEG

NEGATE INTEGER. Negates the value of the

 

 

 

integer operand.

 

 

 

 

 

 

NEG

wreg

 

(DEST) – (DEST)

 

 

 

 

 

 

 

 

 

 

 

(00000011) (wreg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

 

Z

N

 

C

V

VT

 

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

NOP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(11111101)

 

 

 

PSW Flag Settings

 

 

 

 

 

 

 

 

 

 

 

 

 

Z

N

 

C

V

VT

 

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-27

Page 416
Image 416
Intel 8XC196MC, 8XC196MD, 8XC196MH manual Integer operand, SRC, Dest