Intel Microcontroller Microscope & Magnifier User Manual


 
8XC196NP, 80C196NU USER’S MANUAL
A-12
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)
DEST, SRC
CMPB breg, baop
(100110aa) (baop) (breg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓
CMPL COMPARE LONG. Compares the
magnitudes of two double-word (long)
operands. The operands are specified using
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)
DEST, SRC
CMPL Dlreg, Slreg
(11000101) (Slreg) (Dlreg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓✓
DEC DECREMENT WORD. Decrements the value
of the operand by one.
(DEST)
(DEST) –1
DEST
DEC wreg
(00000101) (wreg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓
DECB DECREMENT BYTE. Decrements the value
of the operand by one.
(DEST)
(DEST) –1
DEST
DECB breg
(00010101) (breg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format