Important: The information in this document is obsolete and should not be used for new development.
SetToolboxTrapAddress
You can use theSetToolboxTrapAddressprocedure to install a Toolbox patch address into the Toolbox trap dispatch table. TheSetToolboxTrapAddressprocedure is also available as theSetToolTrapAddressprocedure.
PROCEDURE SetToolboxTrapAddress (trapAddr: LongInt; trapNum: Integer);
trapAddr- The Toolbox patch address.
trapNum- Toolbox A-line instruction or a trap number. If you specify a Toolbox A-line instruction, the function extracts the trap number (located in bits 0-9) for you.
DESCRIPTION
TheSetToolboxTrapAddressprocedure places the Toolbox patch addressspecified by thetrapAddrparameter into the Toolbox trap dispatch table. ThetrapNumparameter specifies the location of the Toolbox patch address in the Toolbox trap dispatch table. TheSetToolboxTrapAddress(trapAddr, trapNum)procedure performs the same operation as aNSetTrapAddress(trapAddr, trapNum,ToolTrap) procedure call.
- Note
- If the system software routine that is being patched has any come-from patches, the
SetToolboxTrapAddressprocedure installs the address of the patch into the exit JMP instruction of the last come-from patch in the chain rather than into the trap dispatch table.![]()
SEE ALSO
For information about theUnimplementedprocedure, see page 8-29. TheNSetTrapAddressfunction is described next.