8XC196MC, MD, MH USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

Operation

 

Instruction Format

CMPL

COMPARE LONG. Compares the

 

DEST, SRC

 

magnitudes of two double-word (long)

CMPL

Dlreg, Slreg

 

operands. The operands are specified using

 

(11000101) (Slreg) (Dlreg)

 

the direct addressing mode. 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

 

 

 

 

 

 

 

 

 

 

 

 

 

DEC

DECREMENT WORD. Decrements the value

 

DEST

 

of the operand by one.

 

 

 

 

 

DEC

wreg

 

(DEST) (DEST) –1

 

 

 

 

 

 

 

 

 

 

 

(00000101) (wreg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

 

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

DECB

DECREMENT BYTE. Decrements the value

 

DEST

 

of the operand by one.

 

 

 

 

 

DECB

breg

 

(DEST) (DEST) –1

 

 

 

 

 

 

 

 

 

 

 

(00010101) (breg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

 

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DI

DISABLE INTERRUPTS. Disables

 

 

 

 

 

interrupts. Interrupt calls cannot occur after

DI

 

 

this instruction.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(11111010)

 

Interrupt Enable (PSW.1) 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

V

VT

 

ST

 

 

 

 

 

— —

 

 

 

 

 

A-12

Page 401
Image 401
Intel 8XC196MC, 8XC196MD, 8XC196MH manual Mnemonic Operation Instruction Format, Cmpl