Important: The information in this document is obsolete and should not be used for new development.
SetToolboxTrapAddress
You can use theSetToolboxTrapAddress
procedure to install a Toolbox patch address into the Toolbox trap dispatch table. TheSetToolboxTrapAddress
procedure is also available as theSetToolTrapAddress
procedure.
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
TheSetToolboxTrapAddress
procedure places the Toolbox patch addresss
pecified by thetrapAddr
parameter into the Toolbox trap dispatch table. ThetrapNum
parameter 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
SetToolboxTrapAddress
procedure 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 theUnimplemented
procedure, see page 8-29. TheNSetTrapAddress
function is described next.