跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

How do I switch to supervisor mode after User Mode?

Latest Updated:06/20/2013

Question:

I switched to User Mode while in an interrupt disabled state. How do I switch to supervisor mode after that?

Answer:

To switch from user mode to supervisor mode, you need to generate an exception. Execute the unconditional trap INT instruction. The INT instruction is not masked by the interrupt enable bit (I) in the processor status word (PSW).
For more information about the INT instruction, please refer to the "Relocatable Vector Table" section of the "CPU" chapter, as well as the "Exceptions" chapter of the hardware manual."

Suitable Products
RX62N, RX621
RX62T
RX610
RX62G
RX630
RX63N, RX631
RX63T
RX210
RX220
RX110
RX111