Carbon


SetA5

Header: OSUtils.h Carbon status: Supported

Sets the A5 register to the address specified.

SInt32 SetA5 (
    SInt32 newA5
);
Parameter descriptions
newA5

The value to which the A5 register is to be changed.

function result

The value in the A5 register before SetA5 changes it to newA5.

DISCUSSION

In interrupt code that accesses application global variables, use the SetA5 function first to restore a value previously saved using SetCurrentA5, and then, at the end of the code, to restore the A5 register to the value it had before the first call to SetA5.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.

CARBON NOTES

68K-specific. Does nothing in PowerPC native code.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)