
Instruction Set Description
4.6.3.20 POPX
* POPX.A
Restore single address-word from the stack
* POPX.[W]
Restore single word from the stack
* POPX.B
Restore single byte from the stack
POPX.A dst
Syntax
POPX dst
or
POPX.W dst
POPX.B dst
Operation
Restore the 8-, 16-, 20-bit value from the stack to the destination. 20-bit addresses are
possible. The SP is incremented by two (byte and word operands) and by four
(address-word operand).
MOVX(.B,.A) @SP+,dst
Emulation
Description
The item on TOS is written to the destination operand. Register mode, Indexed mode,
Symbolic mode, and Absolute mode are possible. The SP is incremented by two or
four.
Note: the SP is incremented by two also for byte operations.
Status Bits
Status bits are not affected.
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
Write the 16-bit value on TOS to the 20-bit address &EDE
POPX.W
&EDE
; Write word to address EDE
Example
Write the 20-bit value on TOS to R9
POPX.A
R9
; Write address-word to R9
206
CPUX
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated