Trap to a short supervisor mode function
Source position: exec.pas line 1220
function Supervisor( |
UserFunction: TProcedure |
):LongWord; |
UserFunction |
|
The address of the code you want called in supervisor mode. |
Allow a normal user-mode program to execute a short assembly language function in the supervisor mode of the processor. Supervisor() does not modify or save registers; the user function has full access to the register set. All rules that apply to interrupt code must be followed. In addition, no system calls are permitted.
You can very easily make the system unusable with this function. In fact it is recommended that you do not use it at all.
|
Enter supervisor state with user stack |
|
|
Return to user state with user stack |