![]() |
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 ();
The value in the A5 register before SetCurrentA5 changes it to the value of the low-memory global variable CurrentA5.0
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.
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.
68K-specific. Does nothing in PowerPC native code.