RTFI

Return from the fast interrupt

RTFI

ReTurn from Fast Interrupt


[Syntax]

RTFI

 

[Operation]

PSW = BPSW;

PC = BPC;

LI = 0;

 

[Function]

-

This instruction returns execution from the fast-interrupt handler by restoring the PC and PSW contents that were saved in the BPC and BPSW when the fast interrupt request was accepted.

-

This instruction is a privileged instruction. Attempting to execute this instruction in user mode generates a privileged instruction exception.

-

If returning is accompanied by a transition to user mode, the U bit in the PSW becomes 1.

-

The data in the BPC and BPSW are undefined when instruction execution is completed.

-

This instruction sets the LI flag within the CPU to 0 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

Code Size

(Byte)

RTFI

2

 

[Flag Change]

Flag

C

V

S

O

Change

*

*

*

*

Note

* The flags become the corresponding values from the BPSW.

 

[Description Example]

RTFI