Datasheet

www.ti.com
Instruction Set
Table 3-17. MSP430 Instruction Set (continued)
Mnemonic Description V N Z C
DECD(.B)
(1)
dst
Double-decrement destination dst - 2 dst * * * *
DINT
(1)
Disable interrupts 0 GIE - - - -
EINT
(1)
Enable interrupts 1 GIE - - - -
INC(.B)
(1)
dst
Increment destination dst +1 dst * * * *
INCD(.B)
(1)
dst
Double-increment destination dst+2 dst * * * *
INV(.B)
(1)
dst
Invert destination .not.dst dst * * * *
JC/JHS label
Jump if C set/Jump if higher or same - - - -
JEQ/JZ label
Jump if equal/Jump if Z set - - - -
JGE label
Jump if greater or equal - - - -
JL label
Jump if less - - - -
JMP label
Jump PC + 2 × offset PC - - - -
JN label
Jump if N set - - - -
JNC/JLO label
Jump if C not set/Jump if lower - - - -
JNE/JNZ label
Jump if not equal/Jump if Z not set - - - -
MOV(.B) src,dst
Move source to destination src dst - - - -
NOP
(2)
No operation - - - -
POP(.B)
(2)
dst
Pop item from stack to destination @SP dst, SP+2 SP - - - -
PUSH(.B) src
Push source onto stack SP - 2 SP, src @SP - - - -
RET
(2)
Return from subroutine @SP PC, SP + 2 SP - - - -
RETI
Return from interrupt * * * *
RLA(.B)
(2)
dst
Rotate left arithmetically * * * *
RLC(.B)
(2)
dst
Rotate left through C * * * *
RRA(.B) dst
Rotate right arithmetically 0 * * *
RRC(.B) dst
Rotate right through C * * * *
SBC(.B)
(2)
dst
Subtract not(C) from destination dst + 0FFFFh + C dst * * * *
SETC
(2)
Set C 1 C - - - 1
SETN
(2)
Set N 1 N - 1 - -
SETZ
(2)
Set Z 1 Z - - 1 -
SUB(.B) src,dst
Subtract source from destination dst + .not.src + 1 dst * * * *
SUBC(.B) src,dst
Subtract source and not(C) from dst dst + .not.src + C dst * * * *
SWPB dst
Swap bytes - - - -
SXT dst
Extend sign 0 * * *
TST(.B)
(2)
dst
Test destination dst + 0FFFFh + 1 0 * * 1
XOR(.B) src,dst
Exclusive OR source and destination src .xor. dst dst * * * *
(2)
Emulated Instruction
63
SLAU144JDecember 2004Revised July 2013 CPU
Submit Documentation Feedback
Copyright © 2004–2013, Texas Instruments Incorporated