Unit 'exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

Supervisor

Trap to a short supervisor mode function

Declaration

Source position: exec.pas line 1873

function Supervisor(

  UserFunc: Pointer

):LongWord;

Description

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.

Errors

You can very easily make the system unusable with this function. In fact it is recommended that you do not use it at all.

See also

SuperState

  

Enter supervisor state with user stack

UserState

  

Return to user state with user stack


Documentation generated on: 2021-07-30