
Instruction Set Description
4.6.3.21 PUSHX
PUSHX.A
Save single address-word to the stack
PUSHX.[W]
Save single word to the stack
PUSHX.B
Save single byte to the stack
PUSHX.A src
Syntax
PUSHX src
or
PUSHX.W src
PUSHX.B src
Operation
Save the 8-, 16-, 20-bit value of the source operand on the TOS. 20-bit addresses are
possible. The SP is decremented by two (byte and word operands) or by four (address-
word operand) before the write operation.
Description
The SP is decremented by two (byte and word operands) or by four (address-word
operand). Then the source operand is written to the TOS. All seven addressing modes
are possible for the source operand.
Status Bits
Status bits are not affected.
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
Save the byte at the 20-bit address &EDE on the stack
PUSHX.B
&EDE
; Save byte at address EDE
Example
Save the 20-bit value in R9 on the stack.
PUSHX.A
R9
; Save address-word in R9
207
SLAU272C – May 2011 – Revised November 2013
CPUX
Copyright © 2011–2013, Texas Instruments Incorporated