Important: The information in this document is obsolete and should not be used for new development.
GetOSTrapAddress
You can use theGetOSTrapAddressfunction to access the address of an Operating System routine, that is located in the Operating System trap dispatch table.
FUNCTION GetOSTrapAddress (trapNum: Integer): LongInt;
trapNum- Operating System A-line instruction or a trap number. If you specify an Operating System A-line instruction, the function extracts the trap number for you.
DESCRIPTION
The GetOSTrapAddress function returns the address of the Operating System routine specified by thetrapNumparameter. If the desired Operating System routine is not supported on the installed system software, the GetOSTrapAddress function returns the address of theUnimplementedprocedure. ThetrapNumparameter should contain a trap number in bits 0-7. GetOSTrapAddress masks the irrelevant high-order bits.A
GetOSTrapAddress(trapNum)function call performs the same operation as aNGetTrapAddress(trapNum,OSTrap)function call.SEE ALSO
For more information about theUnimplementedprocedure, see page 8-29. For information about theNGetTrapAddressfunction, see page 8-27.