Exercise Assembly
Copy your “inout” program to a new file called “factorial.s”.Create a new subroutine called “factorial”. This new subroutineshould take one parameter, n, and for now it should simply donothing and return n in the RAX register. Alter your inoutsubroutine in such a way that it calls factorial with the number itreads, instead of incrementing it by one. It should print theresult of factorial on the terminal.
Write a pseudocode specification of your factorial subroutine.The subroutine accepts a parameter n and it should return n!. Makesure your algorithm is recursive. It should not need to be morethan a few lines of
PayPal Gateway not configured
PayPal Gateway not configured