PUSHC

Saving a control register

PUSHC

PUSH Control register


[Syntax]

PUSHC src

 

[Operation]

tmp = src;

SP = SP - 4;

*SP = tmp;

 

[Function]

-

This instruction pushes the control register specified by src onto the stack.

-

The stack pointer in use is specified by the U bit in the PSW.

-

When the PC is specified as src, this instruction pushes its own address onto the stack.

-

EXTB is also specifiable as src if you have specified the assembler option -isa with selection of the instruction set of the RXv2 or a later version. [V2.01.00 or later]

 

[Instruction Format]

Syntax

Processng Size

Operand

Code Size

(Byte)

src*

PUSHC src

L

Rx

2

Note

* Selectable src: Registers PC, ISP, USP, INTB, EXTB, PSW, BPC, BPSW, FINTV, and FPSW

 

[Flag Change]

-

This instruction does not affect the states of flags.

 

[Description Example]

PUSHC PSW