Important: The information in this document is obsolete and should not be used for new development.
GetTrapAddress
TheGetTrapAddress
function is obsolete and is documented here only for the sake of completeness.
FUNCTION GetTrapAddress (trapNum: Integer): LongInt;
trapNum
- Toolbox A-line instruction or a trap number. If you specify an A-line instruction, the function extracts the trap number for you.
DESCRIPTION
TheGetTrapAddress
function was used when both the Operating System trap addresses and Toolbox trap addresses were located in the same trap dispatch table. Today, any system software routine with the trap number$00
to$4F
,$54
, or$57
is drawn from the Operating System dispatch table; any other software routine is taken from the Toolbox dispatch table.
- WARNING
- The
GetTrapAddress
function is not supported under Power PC.- WARNING
- The
GetTrapAddress
procedure ignores the high-order bits in thetrapNum
parameter; the procedure is not able to differentiate between Operating System routines and Toolbox routines. TheGetTrapAddress
procedure is not reliable on any computer today.