Extended Instructions
4-133
16-Bit MSP430X CPU
PUSHM.A
Save n CPU registers (20-bit data) on the stack
PUSHM[.W]
Save n CPU registers (16-bit words) on the stack
Syntax
PUSHM.A
#n,Rdst
1
≤
n
≤
16
PUSHM.W
#n,Rdst
or PUSHM
#n,Rdst
1
≤
n
≤
16
Operation
PUSHM.A: Save the 20-bit CPU register values on the stack. The stack pointer
(SP) is decremented by four for each register stored on the stack. The MSBs
are stored first (higher address).
PUSHM.W: Save the 16-bit CPU register values on the stack. The stack
pointer is decremented by two for each register stored on the stack.
Description
PUSHM.A: The n CPU registers, starting with Rdst backwards, are stored on
the stack. The stack pointer is decremented by (n
×
4) after the operation. The
data (Rn.19:0) of the pushed CPU registers is not affected.
PUSHM.W: The n registers, starting with Rdst backwards, are stored on the
stack. The stack pointer is decremented by (n
×
2) after the operation. The
data (Rn.19:0) of the pushed CPU registers is not affected.
Note : This instruction does not use the extension word.
Status Bits
Not affected.
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
Save the five 20-bit registers R9, R10, R11, R12, R13 on the stack.
PUSHM.A
#5,R13
; Save R13, R12, R11, R10, R9
Example
Save the five 16-bit registers R9, R10, R11, R12, R13 on the stack.
PUSHM.W
#5,R13
; Save R13, R12, R11, R10, R9
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 ...