Texas Instruments MSP430x4xx Family User Manual page 249

Hide thumbs Also See for MSP430x4xx Family:
Table of Contents

Advertisement

PUSHX.A
PUSHX[.W]
PUSHX.B
Syntax
Operation
Description
Status Bits
Mode Bits
Example
Example
Save a single address-word on the stack
Save a single word on the stack
Save a single byte on the stack
PUSHX.A
src
PUSHX
src or PUSHX.W
PUSHX.B
src
Save the 8/16/20-bit value of the source operand on the TOS. 20-bit addresses
are possible. The stack pointer (SP) is decremented by two (byte and word
operands) or by four (address-word operand) before the write operation.
The stack pointer 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.
Note : This instruction does not use the extension word.
Not affected.
OSCOFF, CPUOFF, and GIE are not affected.
Save the byte at the 20-bit address &EDE on the stack.
PUSHX.B
&EDE
Save the 20-bit value in R9 on the stack.
PUSHX.A
R9
src
; Save byte at address EDE
; Save address-word in R9
16-Bit MSP430X CPU
Extended Instructions
4-135

Advertisement

Table of Contents
loading

Table of Contents