Intel 8XC196NP, 80C196NU, Microcontroller manual Clear WORD. Clears the value

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 316
Image 316

 

 

 

 

 

 

 

 

 

INSTRUCTION SET REFERENCE

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

 

CLR

CLEAR WORD. Clears the value of the

 

DEST

 

operand.

 

 

 

 

 

 

CLR

wreg

 

(DEST) 0

 

 

 

 

 

 

 

 

 

 

 

(00000001) (wreg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

1

0

0

0

 

 

 

 

 

 

 

CLRB

CLEAR BYTE. Clears the value of the

 

DEST

 

operand.

 

 

 

 

 

 

CLRB

breg

 

(DEST) 0

 

 

 

 

 

 

 

 

 

 

 

(00010001) (breg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

1

0

0

0

 

 

 

 

 

 

 

CLRC

CLEAR CARRY FLAG. Clears the carry flag.

 

 

 

C 0

 

 

 

 

 

 

CLRC

 

 

 

 

 

 

 

 

 

 

(11111000)

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

0

— —

 

 

 

 

 

 

 

 

CLRVT

CLEAR OVERFLOW-TRAP FLAG. Clears

 

 

 

the overflow-trap flag.

 

 

 

 

CLRVT

 

 

VT 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(11111100)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

— —

0

 

 

 

 

 

 

 

 

CMP

COMPARE WORDS. Subtracts the source

 

DEST, SRC

 

word operand from the destination word

CMP

wreg, waop

 

operand. The flags are altered, but the

 

(100010aa) (waop) (wreg)

 

operands remain unaffected. If a borrow

 

 

 

 

occurs, the carry flag is cleared; otherwise, it

 

 

 

is set.

 

 

 

 

 

 

 

 

 

(DEST) – (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-11

Page 316
Image 316
Intel 8XC196NP, 80C196NU, Microcontroller manual Clear WORD. Clears the value