Important: The information in this document is obsolete and should not be used for new development.
SetCurrentA5
You can use theSetCurrentA5
function to get the current value of the system global variableCurrentA5
.
FUNCTION SetCurrentA5: LongInt;DESCRIPTION
TheSetCurrentA5
function does two things: First, it gets the current value in the A5 register and returns it to your application. Second,SetCurrentA5
sets register A5 to the value of the low-memory global variableCurrentA5
. This variable points to the boundary between the parameters and global variables of the current application.SPECIAL CONSIDERATIONS
You cannot reliably callSetCurrentA5
in code that is executed at interrupt time unless you first guarantee that your application is the current process (for example, by calling the Process Manager functionGetCurrentProcess
). In general, you should callSetCurrentA5
at noninterrupt time and then pass the returned value to the
interrupt code.ASSEMBLY-LANGUAGE INFORMATION
You can access the value of the current application's A5 register with the low-memory global variableCurrentA5
.