Question: 1 . Write Assembly level languages programme to find factorial of number n , where n is 5 a ) Write instruction to transfer value

1. Write Assembly level languages programme to find factorial of number n,
where n is 5
a) Write instruction to transfer value 5 to R01
b) Write instruction to transfer value 1 to R02
c) Write instruction to multiply content of register R01 and R02, product
should be available in register R02
d) Decrement the value of register R01 by 1
e) If value in register R01 is 0,
Jump to the instruction which stores content of register R02 to
cache memory with logical address 008 and Halt the program
Else Jump to instruction to multiply content of register R01 and
R02
2. What is the content of PC, BR, IR, MAR and MDR during fetch, decode and
execute cycle of store instruction.
3. How many clock cycles are required to execute the program? [Attach screen
shot of the same]
4. What is CPI for the program? Explain.

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!