Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 8 - Trap Manager / Trap Manager Reference
Routines / Installing Patch Addresses Into the Trap Dispatch Tables


SetOSTrapAddress

You can use the SetOSTrapAddress 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
The SetOSTrapAddress procedure places the Operating System patch address specified by the trapAddr parameter into the Operating System trap dispatch table. The trapNum parameter specifies the location of the Operating System patch address in the Operating System trap dispatch table. The procedure call SetOSTrapAddress(trapAddr, trapNum) performs the same operation as a NSetTrapAddress(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 the Unimplemented procedure, see page 8-29. For more information about the NSetTrapAddress function, see page 8-30.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice