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