Instruction Set Description
233
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
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
Syntax
POPX.A dst
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 2 (byte and word operands) and by 4 (address-
word operand).
Emulation
MOVX(.B,.A) @SP+,dst
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 2 or 4.
Note: the SP is incremented by 2 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