Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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; 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started