Important: The information in this document is obsolete and should not be used for new development.
SetA5
In interrupt code that accesses application global variables, use theSetA5
function first to restore a value previously saved usingSetCurrentA5
, and then, at the end of the code, to restore the A5 register to the value it had before the first call toSetA5
.
FUNCTION SetA5 (newA5: LongInt): LongInt;
newA5
- The value to which the A5 register is to be changed.
DESCRIPTION
TheSetA5
function performs two tasks: it returns the address in the A5 register when the function is called, and it sets the A5 register to the address specified innewA5
.