15
7
6
5
4
0
Op-code
B/W
Ad
Rdst
Destination 15:0
MSP430 and MSP430X Instructions
142
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
(1)
* = Status bit is affected.
– = Status bit is not affected.
0 = Status bit is cleared.
1 = Status bit is set.
Table 4-4. MSP430 Double-Operand Instructions
Mnemonic
S-Reg,
D-Reg
Operation
Status Bits
(1)
V
N
Z
C
MOV(.B)
src,dst
src
→
dst
–
–
–
–
ADD(.B)
src,dst
src + dst
→
dst
*
*
*
*
ADDC(.B)
src,dst
src + dst + C
→
dst
*
*
*
*
SUB(.B)
src,dst
dst + .not.src + 1
→
dst
*
*
*
*
SUBC(.B)
src,dst
dst + .not.src + C
→
dst
*
*
*
*
CMP(.B)
src,dst
dst - src
*
*
*
*
DADD(.B)
src,dst
src + dst + C
→
dst (decimally)
*
*
*
*
BIT(.B)
src,dst
src .and. dst
0
*
*
Z
BIC(.B)
src,dst
.not.src .and. dst
→
dst
–
–
–
–
BIS(.B)
src,dst
src .or. dst
→
dst
–
–
–
–
XOR(.B)
src,dst
src .xor. dst
→
dst
*
*
*
Z
AND(.B)
src,dst
src .and. dst
→
dst
0
*
*
Z
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 7 single-
operand instructions.
Figure 4-23. MSP430 Single-Operand Instructions
(1)
* = Status bit is affected.
– = Status bit is not affected.
0 = Status bit is cleared.
1 = Status bit is set.
Table 4-5. MSP430 Single-Operand Instructions
Mnemonic
S-Reg,
D-Reg
Operation
Status Bits
(1)
V
N
Z
C
RRC(.B)
dst
C
→
MSB
→
.......LSB
→
C
0
*
*
*
RRA(.B)
dst
MSB
→
MSB
→
....LSB
→
C
0
*
*
*
PUSH(.B)
src
SP - 2
→
SP, src
→
SP
–
–
–
–
SWPB
dst
bit 15...bit 8
↔
bit 7...bit 0
–
–
–
–
CALL
dst
Call subroutine in lower 64KB
–
–
–
–
RETI
TOS
→
SR, SP + 2
→
SP
*
*
*
*
TOS
→
PC,SP + 2
→
SP
SXT
dst
Register mode: bit 7
→
bit 8...bit 19
Other modes: bit 7
→
bit 8...bit 15
0
*
*
Z