Carbon


SetCurrentA5

Header: OSUtils.h Carbon status: Supported

Sets the value in register A5 to the value of the low-memory global variable CurrentA5.

SInt32 SetCurrentA5 ();
function result

The value in the A5 register before SetCurrentA5 changes it to the value of the low-memory global variable CurrentA5.0

DISCUSSION

The CurrentA5 variable points to the boundary between the parameters and global variables of the current application.

You cannot reliably call SetCurrentA5 in code that executes at interrupt time unless you first guarantee that your application is the current process (for example, by calling the Process Manager function GetCurrentProcess). In general, you should call SetCurrentA5 at noninterrupt time and then pass the returned value to the interrupt code.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.

CARBON NOTES

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


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