Nios/findstack

From ASMBits

Write a function that will return the beginning of the stack frame of the function. This is the value of sp at the beginning of the function, and would point to the first function parameter passed on the stack (i.e., the 5th function parameter), if any.

Expected solution length: Around 2 lines.

Sample Input

[none]

Sample Output

r2=0x04000000

Write your solution here

Upload a source file...