
Instruction Set Description
4.6.2.35 PUSH
PUSH[.W]
Save a word on the stack
PUSH.B
Save a byte on the stack
Syntax
PUSH dst
or
PUSH.W dst
PUSH.B dst
Operation
SP – 2
→
SP
dst
→
@SP
Description
The 20-bit SP SP is decremented by two. The operand is then copied to the RAM word
addressed by the SP. A pushed byte is stored in the low byte; the high byte is not
affected.
Status Bits
Status bits are not affected.
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
Save the two 16-bit registers R9 and R10 on the stack
PUSH
R9
; Save R9 and R10 XXXXh
PUSH
R10
; YYYYh
Example
Save the two bytes EDE and TONI on the stack. The addresses EDE and TONI are
within PC ± 32 K.
PUSH.B
EDE
; Save EDE
xxXXh
PUSH.B
TONI
; Save TONI
xxYYh
168
CPUX
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated