A-11
INSTRUCTION SET REFERENCE
CLRB CLEAR BYTE. Clears the value of the
operand.
(DEST)
← 0
DEST
CLRB breg
(00010001) (breg)
PSW Flag Settings
ZNCVVTST
1000——
CLRC CLEAR CARRY FLAG. Clears the carry flag.
C
← 0CLRC
(11111000)
PSW Flag Settings
ZNCVVTST
—— 0 ———
CLRVT CLEAR OVERFLOW-TRAP FLAG. Clears
the overflow-trap flag.
VT
← 0
CLRVT
(11111100)
PSW Flag Settings
ZNCVVTST
———— 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)
DEST, SRC
CMP wreg, waop
(100010aa) (waop) (wreg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓↑—
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
✓✓✓✓↑—
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format