Important: The information in this document is obsolete and should not be used for new development.
SetTrapAddress
TheSetTrapAddressprocedure 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
TheSetTrapAddressprocedure 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$00to$4F,$54, or$57is installed into the Operating System dispatch table; any other system software routine is installed into the Toolbox dispatch table.
- WARNING
- The
SetTrapAddressprocedure is not supported under Power PC.![]()
- WARNING
- The
SetTrapAddressprocedure ignores the high-order bits in thetrapNumparameter; the procedure is not able to differentiate between Operating System routines and Toolbox routines. TheSetTrapAddressprocedure is not reliable on any computer today.![]()