Unit 'EXEC' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

Supervisor

Trap to a short supervisor mode function

Declaration

Source position: exec.pas line 1290

function Supervisor(

  userFunction: tPROCEDURE

):LongWord;

Arguments

userFunction

  

The address of the code you want called in supervisor mode.

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