Problem 2: (marks) Instructions: Language of the Computer For the following MIPS code, assume that Sa and Sal are used f

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Problem 2: (marks) Instructions: Language of the Computer For the following MIPS code, assume that Sa and Sal are used f

Post by answerhappygod »

Problem 2 Marks Instructions Language Of The Computer For The Following Mips Code Assume That Sa And Sal Are Used F 1
Problem 2 Marks Instructions Language Of The Computer For The Following Mips Code Assume That Sa And Sal Are Used F 1 (20.58 KiB) Viewed 53 times
Problem 2: (marks) Instructions: Language of the Computer For the following MIPS code, assume that Sa and Sal are used for the input and both initially contain the integers 10 and 4. respectively. Also, assume that Svo is used for the output and the location Memory$82+100 contains the value 30: loop: add Sto, Szero, Szero beg Sal, Szero, exit add Sto, Sto, Sao addi Sal, Sal, -1 1 loop Iw $tl, 100 ($2) add $t0,$t0,$t1 Sto, 104(582) add Svo, Sto, Szero exit: # What does this code computer Specifically, what will be churned in $v0.6) b) Compute the total number of clock cycles needed to execute the above code on a single-cycle design. (uk) c) How long does it take to execute the above code on a machine with a 4 GHz clock? C marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply