MSP430 and MSP430X Instructions
4-38
16-Bit MSP430X CPU
Single Operand (Format II) Instructions
Figure 4−23 shows the format for MSP430 single operand instructions, except
RETI. The destination word is appended for the Indexed, Symbolic, Absolute
and Immediate modes .Table 4−5 lists the seven single operand instructions.
Figure 4−23. MSP430 Single Operand Instructions
15
7
6
5
4
0
Op-code
B/W
Ad
Rdst
Destination 15:0
Table 4−5. MSP430 Single Operand Instructions
Mnemonic
S-Reg,
D Reg
Operation
Status Bits
D-Reg
V
N
Z
C
RRC(.B)
dst
C
→
MSB
→
.......LSB
→
C
*
*
*
*
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 64 KB
−
−
−
−
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
*
The status bit is affected
−
The status bit is not affected
0
The status bit is cleared
1
The status bit is set
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...