Instruction Set Description
234
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
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
Syntax
PUSHX.A src
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 2 (byte and word operands) or by 4 (address-word
operand) before the write operation.
Description
The SP is decremented by 2 (byte and word operands) or by 4 (address-word operand).
Then the source operand is written to the TOS. All 7 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