![]() |
|
| << Previous | Next >> | |
| | |
SETUSRP mn Enter User Interrupt Rabbit 4000/5000 Instruction
ED B5 n m SETUSRP mn SU = {SU[7:2],01}
(SP - 1) = m
(SP - 2) = n
SP = SP - 2
Description
Sets the current processor mode by setting SU bit 1 to zero and bit 0 to one.
The System/User Mode Register, SU, is an 8-bit register that forms a stack of the current processor mode and the previous 3 modes.
This instruction is used to handle user mode interrupts in system/user mode.
This is a chained-atomic instruction, meaning that an interrupt cannot take place between this instruction and the instruction following it.
| Rabbit Instructions | << Previous | Next >> | rabbit.com |