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

  • SEARCH
  • Home
  • 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 6234623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:31:07+00:00 2026-05-24T10:31:07+00:00

I was trying to solve this homework assignment but was unable to come up

  • 0

I was trying to solve this homework assignment but was unable to come up with a solution. Below is the problem,

Translate this code into MIPS machine

once_more:
    lw $5, 48($6)
    sub $5, $5, $2
    bne $5, $0, once_more

Now the problem I am facing is that I have no idea what should be the value of the registers in this problem (I only studied $t0-$t7(8-15) and $s0-$s7 (16-23) values). Can anyone please help me with the values of these registers?
Thanks in advance.

  • 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-24T10:31:08+00:00Added an answer on May 24, 2026 at 10:31 am

    Based on this document, I think the registers being referenced are as follows:

    • $5 -> $a1
    • $6 -> $a2
    • $2 -> $v0

    $0 is the $zero register.

    $a- registers hold arguments, while $v1 registers hold results. One of the purposes of these registers is for use by syscalls; for example, the print_int syscall will print the value in $a0 as an integer.

    Translating these to machine code will mean that you need to convert the assembly statement into the binary machine equivalent. The MIPS Green Card will help you here. Look at the “Basic Instruction Formats” section for an explanation of how the instructions are laid out in binary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to solve this flickering problem on the iphone (open gl es game).
I was trying to solve my XNA Font problem , when I found this
I'm trying to solve the problem of passing a 2-dimensional table into JavaScript AJAX
In trying to solve the ajax back button problem I have found the Really
I'm trying to solve the 3n+1 problem and I have a for loop that
I have a problem I'm trying to solve involving interfaceing a C++ program with
(see here for the problem I'm trying to solve) How do you get hibernate
Here's a problem I've been trying to solve at work. I'm not a database
I'm trying to solve this: A user class with 50 fields is defined in
So I've been trying to solve this one on my own for a few

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.