2.2.46 (1) PUSH (W)
PUSH (PUSH data)
Push Data on Stack
Operation
Rn
→
@–SP
Assembly-Language Format
PUSH.W
Rn
Operand Size
Word
Condition Code
H: Previous value remains unchanged.
N: Set to 1 if the data value is negative;
otherwise cleared to 0.
Z:
Set to 1 if the data value is zero;
otherwise cleared to 0.
V: Always cleared to 0.
C: Previous value remains unchanged.
I
UI
H
U
N
Z
V
C
—
—
—
—
↕
↕
0
—
Description
This instruction saves data from a 16-bit register Rn onto the stack, tests the saved data, and sets
condition-code flags according to the result.
Available Registers
Rn: R0 to R7, E0 to E7
Operand Format and Number of States Required for Execution
Notes
1.
PUSH.W Rn is identical to MOV.W Rn, @–SP.
2.
When PUSH.W R7 or PUSH.W E7 is executed, the value saved on the stack is the lower part
(R7) or upper part (E7) of the value of ER7 before execution minus two.
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
—
PUSH.W
Rn
6
D
F
rn
6
No. of
States
Addressing
Mode
Mnemonic
Operands
145