Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c.) Use the following program to estimate the instruction execution rate for MIPSym running on your computer. Adjust the Time Factor on your computer, assemble

c.) Use the following program to estimate the instruction execution rate for MIPSym running on your computer. Adjust the Time Factor" on your computer, assemble and run until the displayed timing of 5 second intervals is correct. For you answer, submit the "Time Factor" that corresponds to your interval.

.data # Data declaration

msg: .asciiz " Elapsed Time = "

.code

# Start

main:

li $s1,0 # Time counter

countdown:

li $s0,2500000 # Adjustable time f

waitloop:

addi $s0,$s0,-1

bnez $s0,waitloop

addi $s1,$s1,5

la $a0,msg

syscall $print_string

move $a0,$s1

syscall $print_int

addi $t0,$s1,-60

bnez $t0,countdown

syscall $exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

Students also viewed these Databases questions

Question

Why did Hostess Brands Inc. go into bankruptcy?

Answered: 1 week ago