SetToolboxTrapAddressYou can use the
SetToolboxTrapAddressprocedure to install a Toolbox patch address into the Toolbox trap dispatch table. The
SetToolboxTrapAddressprocedure is also available as the
PROCEDURE SetToolboxTrapAddress (trapAddr: LongInt; trapNum: Integer);
- The Toolbox patch address.
- 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.
SetToolboxTrapAddressprocedure places the Toolbox patch address
specified by the
trapAddrparameter into the Toolbox trap dispatch table. The
trapNumparameter specifies the location of the Toolbox patch address in the Toolbox trap dispatch table. The
SetToolboxTrapAddress(trapAddr, trapNum)procedure performs the same operation as a
NSetTrapAddress(trapAddr, trapNum,ToolTrap) procedure call.
- 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 ALSOFor information about the
Unimplementedprocedure, see page 8-29. The
NSetTrapAddressfunction is described next.