Question: If you can make a recursive function work, then you have managed to understand how to deal with functions in Assembly. Write a function in

If you can make a recursive function work, then you have managed to understand how to deal with functions in Assembly. Write a function in ARMV8 assembly language for calculating Use this for a bragging rights scale: the Nth number in the Fibonacci sequence, and returning it. 16-18: Better than C You must write this as a recursive function. 14-15: Assembly Hacker (+1 bonus point on semester for 15 instructions or less) 13: Coder Extraordinaire (another +1 There is an additional constraint. Your function must have at most 18 instructions in it (only count the instructions, not the labels. RET counts as one of the instructions). This is to prevent you from getting a C compiler to just tell you the answer I've tested it, and the smallest a C compiler does is bonus point on semester) 12: Better Than Duane (another +1 19 instructions. You can do better O bonus point on semester) For clarity, the numbers in the Fibonacci sequence will be: Fib(0) = 0 Note: the key to getting the bonus points is learning more things about ARM assembly than covered in class. Fib(1) = 1 Fib(N) = Fib(N-1) + Fib(N-2), for all N>= 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
