•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileSuper()
Supexec()                                                             XBIOS

Syntax

LONG Supexec( func )
LONG (*func)( VOID );

Function      Supexec() executes a user-defined function in supervisor
              mode.

Opcode        38 (0x26)

Availability  All TOS versions.

Parameters    func is the address to a function which will be called in
              supervisor mode.

Binding       pea      func
              move.w   #$26,-(sp)
              trap     #14
              addq.l   #6,sp

Return Value  Supexec() returns the LONG value returned by the user
              function.

Caveats       Care must be taken when calling the operating system in
              supervisor mode. The AES must not be called while in
              supervisor mode.

See Also      Super()