pushsp


Push from the stack (Push Registers from Stack)

[Syntax]

-

pushsp rh, rt

 

The following can be specified as rt and rh:

-

General-purpose registers r0 - r31

[Function]

Stores general-purpose register rh to rt in the stack in ascending order (rh, rh +1, rh + 2, ..., rt). After all the specified registers have been stored, sp is updated (decremented).

Remark

The lower two bits of the address specified by sp are masked by 0.
If an exception is acknowledged before sp is updated, instruction execution is halted and exception handling is executed with the start address of this instruction used as the return address. The pushsp instruction is then executed again (The sp value from before the exception handling is saved).

[Description]

-

The assembler generates one pushsp machine instruction.

[Flag]

CY

---

OV

---

S

---

Z

---

SAT

---

[Caution]

-

If the relationship between the register numbers specified as rh and rt is rh > rt, the assembler outputs the following message.

E0551200 : Syntax error.