8XC196MC, MD, MH USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

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

 

 

 

 

 

 

 

 

OR

LOGICAL OR WORDS. ORs the source word

 

DEST, SRC

 

operand with the destination word operand

OR

wreg, waop

 

and replaces the original destination operand

 

(100000aa) (waop) (wreg)

 

with the result. The result has a “1” in each bit

 

 

 

 

position in which either the source or

 

 

 

destination operand had a “1”.

 

 

 

 

 

 

(DEST) (DEST) OR (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

 

VT

ST

 

 

 

 

 

0

 

0

 

 

 

 

 

 

 

 

ORB

LOGICAL OR BYTES. ORs the source byte

 

DEST, SRC

 

operand with the destination byte operand

ORB

breg, baop

 

and replaces the original destination operand

 

(100100aa) (baop) (breg)

 

with the result. The result has a “1” in each bit

 

 

 

 

position in which either the source or

 

 

 

destination operand had a “1”.

 

 

 

 

 

 

(DEST) (DEST) OR (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

 

VT

ST

 

 

 

 

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-28

Page 417
Image 417
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Dest ← not Dest, Dest ← Dest or SRC