Download 8XC196NT Microcontroller User`s Manual

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