RTFI

Return from the fast interrupt

RTFI

ReTurn from Fast Interrupt


[Syntax]

RTFI

 

[Operation]

PSW = BPSW;

PC = BPC;

 

[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.

 

[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