Important: The information in this document is obsolete and should not be used for new development.
SetOSTrapAddress
You can use theSetOSTrapAddressprocedure 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
TheSetOSTrapAddressprocedure places the Operating System patch address specified by thetrapAddrparameter into the Operating System trap dispatch table. ThetrapNumparameter 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
SetOSTrapAddressprocedure 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. For more information about theNSetTrapAddressfunction, see page 8-30.