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
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...