Describe in one sentence what it computes suppose that a0


Question 1: Suppose the subsequent assembly code for parts 1 and 2.

r1 = 99 Loop:

r1 = r1 - 1

if r1 > 0, goto Loop

halt

Part 1: During the execution of the above code, how many instructions are executed?

Part 2: Assuming a standard unicycle machine (CPI = 1) running at 100 KHz, how long will the above code take to complete?

Part 3: Add comments to the subsequent MIPS code and describe in one sentence what it computes. Suppose that $a0 and $a1 are used for the input and both initially contain the integers a and b, respectively. Suppose that $v0 is used for the output.

Will you write the code with less number of instructions? If yes, write the new code. Please minimize the instructions.

add $t0, $zero, $zero

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Describe in one sentence what it computes suppose that a0
Reference No:- TGS0961258

Expected delivery within 24 Hours