Question: Write a new ARMv8 assembly file called lab04b.S which is called by your main function. It should have the following specifications: Create a function that

Write a new ARMv8 assembly file called "lab04b.S" which is called by your main function. It should have the following specifications:

  • Create a function that computes factorials: n! = n (n 1) ... 3 2 1.
  • Use the my_mul function in question 1 for all multiplications
  • Use the concept of recursion. Do NOT directly use the concept of iteration.
  • Do not forget that using the recursion is the same as using the STACK.
  • Make sure you comment on the code.
  • Demonstrate your code running to the TA.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!