Important: The information in this document is obsolete and should not be used for new development.
SetOSTrapAddress
You can use theSetOSTrapAddress
procedure to install an Operating System patch address into an Operating System trap dispatch table.
PROCEDURE SetOSTrapAddress (trapAddr: LongInt; trapNum: Integer);
trapAddr
- The Operating System patch address.
trapNum
- Operating System A-line instruction or a trap number. If you specify an Operating System A-line instruction, the function extracts the trap number (located in bits 0-7) for you.
DESCRIPTION
TheSetOSTrapAddress
procedure places the Operating System patch address specified by thetrapAddr
parameter into the Operating System trap dispatch table. ThetrapNum
parameter specifies the location of the Operating System patch address in the Operating System trap dispatch table. The procedure callSetOSTrapAddress(trapAddr, trapNum)
performs the same operation as aNSetTrapAddress(trapAddr, trapNum,
OSTrap)
procedure call.
- Note
- If the system software routine that is being patched has any come-from patches, the
SetOSTrapAddress
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. For more information about theNSetTrapAddress
function, see page 8-30.