Extended Instructions
4-132
16-Bit MSP430X CPU
POPM.A
Restore n CPU registers (20-bit data) from the stack
POPM[.W]
Restore n CPU registers (16-bit data) from the stack
Syntax
POPM.A
#n,Rdst
1
≤
n
≤
16
POPM.W
#n,Rdst
or POPM #n,Rdst
1
≤
n
≤
16
Operation
POPM.A: Restore the register values from stack to the specified CPU
registers. The stack pointer SP is incremented by four for each register
restored from stack. The 20-bit values from stack (2 words per register) are
restored to the registers.
POPM.W: Restore the 16-bit register values from stack to the specified CPU
registers. The stack pointer SP is incremented by two for each register
restored from stack. The 16-bit values from stack (one word per register) are
restored to the CPU registers.
Note : This does not use the extension word.
Description
POPM.A: The CPU registers pushed on the stack are moved to the extended
CPU registers, starting with the CPU register (Rdst - n + 1). The stack pointer
is incremented by (n
×
4) after the operation.
POPM.W: The 16-bit registers pushed on the stack are moved back to the
CPU registers, starting with CPU register (Rdst - n + 1). The stack pointer is
incremented by (n
×
2) after the instruction. The MSBs (Rdst.19:16) of the
restored CPU registers are cleared
Status Bits
Not affected, except SR is included in the operation
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected, except SR is included in the op-
eration.
Example
Restore the 20-bit registers R9, R10, R11, R12, R13 from the stack.
POPM.A
#5,R13
; Restore R9, R10, R11, R12, R13
Example
Restore the 16-bit registers R9, R10, R11, R12, R13 from the stack.
POPM.W
#5,R13
; Restore R9, R10, R11, R12, R13
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 ...