Texas Instruments MSP430x1xx User Manual page 111

Texas instruments modules and peripherals user's guide
Table of Contents

Advertisement

Table 3−17.MSP430 Instruction Set
Mnemonic
Description
ADC(.B) †
Add C to destination
dst
Add source to destination
ADD(.B)
src,dst
Add source and C to destination
ADDC(.B)
src,dst
AND source and destination
AND(.B)
src,dst
Clear bits in destination
BIC(.B)
src,dst
Set bits in destination
BIS(.B)
src,dst
Test bits in destination
BIT(.B)
src,dst
BR †
Branch to destination
dst
Call destination
CALL
dst
CLR(.B) †
Clear destination
dst
CLRC †
Clear C
CLRN †
Clear N
CLRZ †
Clear Z
Compare source and destination
CMP(.B)
src,dst
DADC(.B) †
Add C decimally to destination
dst
Add source and C decimally to dst.
DADD(.B)
src,dst
DEC(.B) †
Decrement destination
dst
DECD(.B) †
Double-decrement destination
dst
DINT †
Disable interrupts
EINT †
Enable interrupts
INC(.B) †
dst
Increment destination
INCD(.B) †
Double-increment destination
dst
INV(.B) †
Invert destination
dst
Jump if C set/Jump if higher or same
JC/JHS
label
Jump if equal/Jump if Z set
JEQ/JZ
label
Jump if greater or equal
JGE
label
Jump if less
JL
label
Jump
JMP
label
Jump if N set
JN
label
Jump if C not set/Jump if lower
JNC/JLO
label
Jump if not equal/Jump if Z not set
JNE/JNZ
label
Move source to destination
MOV(.B)
src,dst
NOP †
No operation
POP(.B) †
Pop item from stack to destination
dst
Push source onto stack
PUSH(.B)
src
RET †
Return from subroutine
Return from interrupt
RETI
RLA(.B) †
Rotate left arithmetically
dst
RLC(.B) †
Rotate left through C
dst
Rotate right arithmetically
RRA(.B)
dst
Rotate right through C
RRC(.B)
dst
SBC(.B) †
Subtract not(C) from destination
dst
SETC †
Set C
SET †
Set N
SETZ †
Set Z
Subtract source from destination
SUB(.B)
src,dst
Subtract source and not(C) from dst.
SUBC(.B)
src,dst
Swap bytes
SWPB
dst
Extend sign
SXT
dst
TST(.B) †
Test destination
dst
Exclusive OR source and destination
XOR(.B)
src,dst
† Emulated Instruction
V
dst + C → dst
*
src + dst → dst
*
src + dst + C → dst
*
src .and. dst → dst
0
.not.src .and. dst → dst
src .or. dst → dst
src .and. dst
0
dst → PC
PC+2 → stack, dst → PC
0 → dst
0 → C
0 → N
0 → Z
dst − src
*
dst + C → dst (decimally)
*
src + dst + C → dst (decimally)
*
dst − 1 → dst
*
dst − 2 → dst
*
0 → GIE
1 → GIE
dst +1 → dst
*
dst+2 → dst
*
.not.dst → dst
*
PC + 2 x offset → PC
src → dst
@SP → dst, SP+2 → SP
SP − 2 → SP, src → @SP
@SP → PC, SP + 2 → SP
*
*
*
0
*
dst + 0FFFFh + C → dst
*
1 → C
1 → N
1 → C
dst + .not.src + 1 → dst
*
dst + .not.src + C → dst
*
0
dst + 0FFFFh + 1
0
src .xor. dst → dst
*
RISC 16−Bit CPU
Instruction Set
N
Z
C
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
0
0
0
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
1
1
1
*
*
*
*
*
*
*
*
*
*
*
1
*
*
*
3-75

Advertisement

Table of Contents
loading

Table of Contents