Question: ( 2 0 pts ) Write an IAS program to compute the factorial f ( n ) = n ! using instructions from the Table
pts Write an IAS program to compute the factorial fnn using instructions from the Table where
the value of n is stored at the memory location OFA. After the execution of your program the output value fn
must be stored at location OFB. For example, if the content of OFA is then a value of 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: added a new instruction MOV in Table to assign a scalar value to AC At first, think about the
pseudocode.
Address Symbolic Name Contents
R
Address
AR
BL
BR
CL
CR
DL
DR
EL
ER
FL
FR
L
R
L
R
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
