Texas Instruments MSP430x1xx User Manual
Page 352
Instruction Set Overview
B-2
B.1 Instruction Set Overview
The following list gives an overview of the instruction set.
Status Bits
V N Z C
* ADC[.W];ADC.B
dst
dst + C –> dst
*
*
*
*
ADD[.W];ADD.B
src,dst
src + dst –> dst
*
*
*
*
ADDC[.W];ADDC.B src,dst
src + dst + C –> dst
*
*
*
*
AND[.W];AND.B
src,dst
src .and. dst –> dst
0 *
*
*
BIC[.W];BIC.B
src,dst
.not.src .and. dst –> dst
– –
– –
BIS[.W];BIS.B
src,dst
src .or. dst –> dst
– –
– –
BIT[.W];BIT.B
src,dst
src .and. dst
0 *
*
*
* BR
dst
Branch to .......
– –
– –
CALL
dst
PC+2 –> stack, dst –> PC
– –
– –
* CLR[.W];CLR.B
dst
Clear destination
– –
– –
* CLRC
Clear carry bit
– –
– 0
* CLRN
Clear negative bit
– 0
– –
* CLRZ
Clear zero bit
– –
0 –
CMP[.W];CMP.B
src,dst
dst – src
*
*
*
*
* DADC[.W];DADC.B dst
dst + C –> dst (decimal)
*
*
*
*
DADD[.W];DADD.B src,dst
src + dst + C –> dst (decimal) *
*
*
*
* DEC[.W];DEC.B
dst
dst – 1 –> dst
*
*
*
*
* DECD[.W];DECD.B dst
dst – 2 –> dst
*
*
*
*
* DINT
Disable interrupt
– –
– –
* EINT
Enable interrupt
– –
– –
* INC[.W];INC.B
dst
Increment destination,
dst +1 –> dst
*
*
*
*
* INCD[.W];INCD.B
dst
Double-Increment destination,
dst+2–>dst
*
*
*
*
* INV[.W];INV.B
dst
Invert destination
*
*
*
*
JC/JHS
Label
Jump to Label if
Carry-bit is set
– –
– –
JEQ/JZ
Label
Jump to Label if
Zero-bit is set
– –
– –
JGE
Label
Jump to Label if
(N .XOR. V) = 0
– –
– –
JL
Label
Jump to Label if
(N .XOR. V) = 1
– –
– –
JMP
Label
Jump to Label unconditionally – –
– –
JN
Label
Jump to Label if
Negative-bit is set
–
– – –
JNC/JLO
Label
Jump to Label if
Carry-bit is reset
– –
– –
JNE/JNZ
Label
Jump to Label if
Zero-bit is reset
– –
– –