INSTRUCTION SET REFERENCE

Table A-6. Instruction Set (Continued)

Mnemonic

Operation

Instruction Format

CLRB

CLEAR BYTE. Clears the value of the

 

operand.

 

(DEST) 0

DEST

CLRB breg (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

 

word operand from the destination word

 

operand. The flags are altered, but the

 

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

DEST, SRC

CMP wreg, waop (100010aa) (waop) (wreg)

✓ ✓ ✓ ✓

CMPB

COMPARE BYTES. Subtracts the source

 

byte operand from the destination byte

 

operand. The flags are altered, but the

 

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

 

 

 

 

DEST, SRC CMPB breg, baop (100110aa) (baop) (breg)

A-11

Page 400
Image 400
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Clear BYTE. Clears the value