SPRUIG8I January 2018 – December 2023
A function accesses its stack arguments and local nonregister variables indirectly through register D15 (SP), which points to the top of the stack. Since the stack grows toward smaller addresses, the local and argument data for a function are accessed with a positive offset from SP. Local variables, temporary storage, and the area reserved for stack arguments to functions called by this function are accessed with offsets from the SP.
For more information, see Section 6.4.2. For more information on the C/C++ System stack, see Section 6.1.2.