Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6602075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:50:01+00:00 2026-05-25T18:50:01+00:00

This code is about to find maximum element from an array i want to

  • 0

This code is about to find maximum element from an array i want to convert this code into MIPS assembly code can anyone help me…Or just tell me how to initialize an array in MIPS.

void max_array()
{
    int a[10]={2,3,421,4,32,4,3,1,4,5},max;
    for(int i=0;i<9;i++)
    {
        cout<<a[i];
    }
    max=a[0];
    for(int j=1;j<9;j++)
    {
        if (max<a[j])
        {
             max=a[j];
        }
    }
    return max;

 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:50:02+00:00Added an answer on May 25, 2026 at 6:50 pm

    Here’s an example

            .data
    array1:     .space  12              #  declare 12 bytes of storage to hold array of 3 integers
            .text
    __start:    la  $t0, array1     #  load base address of array into register $t0
            li  $t1, 5                  #  $t1 = 5   ("load immediate")
            sw $t1, ($t0)                #  first array element set to 5; indirect addressing
            li $t1, 13                  #   $t1 = 13
            sw $t1, 4($t0)           #  second array element set to 13
            li $t1, -7                  #   $t1 = -7
            sw $t1, 8($t0)           #  third array element set to -7
            done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right, this code goes through a rather large multidimensional array (has about 28,000 rows
The compiler complains about this code: HashMap<String,int> userName2ind = new HashMap<String,int>(); for (int i=0;
There's something very unsatisfactory about this code: /* Given a command string in which
I'm VERY confused as to why this code Html.ActionLink(About, About, Home, new { hidefocus
according to this code i dont understand about NSClassFromString how did i know viewControllerName
When I run this code, About half-way through the concatenation loop, $xml becomes null
There are a lot of posts on here about this, I'm using this code
I have couple of questions about AS3 variables handling by AVM/compiler/scope .1. This code
I have this legacy code base (Compaq PERL) , about 1500 lines of code,
A co-worker asked about some code like this that originally had templates in it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.