Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help me write a beginner MIPS subroutine for finding the minimum and maximum of an array of size 16? Here is a bit

Can someone help me write a beginner MIPS subroutine for finding the minimum and maximum of an array of size 16?

Here is a bit of a template I set up :

.data

array1: .word 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 size: 16 minimum: .asciiz "Your array minimum is: " maximum: .asciiz " Your array maximum is: " .text .globl main

main: la $t0, words # load the address of words to $t0 lw $t4, size # lw - load word.load the value of size to $t4 li $t1, 0 # li - load immediate.Copy 0 to $t1 jal minmax

minmax: loop:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions