Question: ( 2 0 pts ) Write an IAS program to compute the factorial f ( n ) = n ! using instructions from the Table

(20pts) Write an IAS program to compute the factorial f(n)=n! using instructions from the Table 2 where
the value of n is stored at the memory location OFA. After the execution of your program the output value f(n)
must be stored at location OFB. For example, if the content of OFA is 4 then a value of 24(4!) must be present
in memory location OFB. A snapshot of the memory is given as a table on the right. Write your code below:
Hint: 1 added a new instruction (MOV) in Table 2 to assign a scalar value to AC. At first, think about the
pseudocode.
Address Symbolic Name Contents
092R
Address
08AR
08BL
08BR
08CL
08CR
08DL.
08DR.
08EL
08ER
08FL
08FR
090L
090R
091L
091R
....
....
....
....
( 2 0 pts ) Write an IAS program to compute the

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 Programming Questions!