
15
7
6
5
4
0
Op-code
B/W
Ad
Rdst
Destination 15:0
MSP430 and MSP430X Instructions
Table 4-4. MSP430 Double-Operand Instructions
Status Bits
(1)
S-Reg,
Mnemonic
Operation
D-Reg
V
N
Z
C
src,dst
src
→
dst
–
–
–
–
MOV(.B)
src,dst
src + dst
→
dst
*
*
*
*
ADD(.B)
src,dst
src + dst + C
→
dst
*
*
*
*
ADDC(.B)
src,dst
dst + .not.src + 1
→
dst
*
*
*
*
SUB(.B)
src,dst
dst + .not.src + C
→
dst
*
*
*
*
SUBC(.B)
src,dst
dst - src
*
*
*
*
CMP(.B)
src,dst
src + dst + C
→
dst (decimally)
*
*
*
*
DADD(.B)
src,dst
src .and. dst
0
*
*
Z
BIT(.B)
src,dst
.not.src .and. dst
→
dst
–
–
–
–
BIC(.B)
src,dst
src .or. dst
→
dst
–
–
–
–
BIS(.B)
src,dst
src .xor. dst
→
dst
*
*
*
Z
XOR(.B)
src,dst
src .and. dst
→
dst
0
*
*
Z
AND(.B)
(1)
* = Status bit is affected.
– = Status bit is not affected.
0 = Status bit is cleared.
1 = Status bit is set.
4.5.1.2
MSP430 Single-Operand (Format II) Instructions
shows the format for MSP430 single-operand instructions, except RETI. The destination word
is appended for the Indexed, Symbolic, Absolute, and Immediate modes.
lists the seven single-
operand instructions.
Figure 4-23. MSP430 Single-Operand Instructions
Table 4-5. MSP430 Single-Operand Instructions
Status Bits
(1)
S-Reg,
Mnemonic
Operation
D-Reg
V
N
Z
C
dst
C
→
MSB
→
.......LSB
→
C
0
*
*
*
RRC(.B)
dst
MSB
→
MSB
→
....LSB
→
C
0
*
*
*
RRA(.B)
src
SP - 2
→
SP, src
→
SP
–
–
–
–
PUSH(.B)
dst
bit 15...bit 8
↔
bit 7...bit 0
–
–
–
–
SWPB
dst
Call subroutine in lower 64 KB
–
–
–
–
CALL
TOS
→
SR, SP + 2
→
SP
*
*
*
*
RETI
TOS
→
PC,SP + 2
→
SP
Register mode: bit 7
→
bit 8...bit 19
dst
0
*
*
Z
SXT
Other modes: bit 7
→
bit 8...bit 15
(1)
* = Status bit is affected.
– = Status bit is not affected.
0 = Status bit is cleared.
1 = Status bit is set.
115
SLAU272C – May 2011 – Revised November 2013
CPUX
Copyright © 2011–2013, Texas Instruments Incorporated