Page 1 of 1

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

Posted: Sat Mar 19, 2022 5:45 pm
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 54 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)