push


Pushes to stack area (single register).

[Syntax]

push reg

[Function]

Pushes the value of the register specified by the operand to the stack area.

[Description]

-

When the push instruction is executed, the assembler executes instruction expansion to generate two or more machine instructions.

push    reg
add     -4, sp
st.w    reg, [sp]

[Flag]

CY

1 if a carry occurs from MSB (Most Significant Bit), 0 if not

OV

1 if Integer-Overflow occurs, 0 if not

S

1 if the result is negative, 0 if not

Z

1 if the result is 0, 0 if not

SAT

---

Caution

Instruction expansion is performed, and set via an add instruction.