SetTrapAddressprocedure is obsolete, and is documented here only for the sake of completeness.
PROCEDURE SetTrapAddress (trapAddr: LongInt; trapNum: Integer);
- The address of the system software routine.
- A-line instruction or a trap number. If you specify an A-line instruction, the function extracts the trap number you.
SetTrapAddressprocedure 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
$57is installed into the Operating System dispatch table; any other system software routine is installed into the Toolbox dispatch table.
SetTrapAddressprocedure is not supported under Power PC.
SetTrapAddressprocedure ignores the high-order bits in the
trapNumparameter; the procedure is not able to differentiate between Operating System routines and Toolbox routines. The
SetTrapAddressprocedure is not reliable on any computer today.