Arm/return123
From ASMBits
arm/returnPrevious
Nextarm/invert
Write a function named func that returns 123. This implies two things:
- The return value (in r0) is set to 123 (or 0x7b)
- Your function returns to the caller (The return address is lr)
If the return value is incorrect, you will see a mismatch in the final contents of r0 = 0000007b. If your function correctly returned to the caller, the final line of output will be "Test completed." Otherwise, not returning to the caller will result in Test did not complete.
Expected solution length: Around 2 lines.
Sample Input
Sample Output
123
arm/returnPrevious
Nextarm/invert