Question: Given the following assembly program in GPR architecture: loads #10, R1; loads 10 in R1 moves R1, R2; moves (copies) content of R1 into R2

 Given the following assembly program in GPR architecture: loads #10, R1;

Given the following assembly program in GPR architecture: loads #10, R1; loads 10 in R1 moves R1, R2; moves (copies) content of R1 into R2 adds R1, R2, R3; adds R1 to R2 and puts result in R3 mul #20, R3, R4; multiplies R3 by 20 and puts result in R4 move R4, M[1000]; moves (copies) content of R1 into Memory at address 1000 a) For every instruction in the above program, draw, as a flow chart, the micro step execution cycle. b) Assuming each instruction requires four bytes to be encoded, calculate the total memory needed to store the program. c) Assuming an execution on a 2 GHz CPU. where every step requires a number of clock cycles (cc) as shown below, calculate the execution time for every instruction, then for the whole program

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!