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 6250891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:30:45+00:00 2026-05-24T13:30:45+00:00

I am stuck with solving my assignment. Here is what it states, Consider the

  • 0

I am stuck with solving my assignment. Here is what it states,

Consider the following fragment of MIPS assembly-language code:

start:   add $t1, $t2, $t3
         addi $t1, $t1, 10
         add $t4, $t2, $t2
         add $t6, $t3, $t3
         beq $t1, $t4, q_final
middle:  add $t1, $0, $0
         bne $t6, $t4, s_final
         add $t7, $t7, $t7
j final
q_final: slt $t1, $t4, $t6
s_final: add $t7, $t7, $t1
final:   jr $ra

a) If the label start has the value 100 (all numbers in decimal
notation), what are the addresses specified by labels middle, q_final
and final?
I am confused with how to proceed. I was thinking that adding 4 to each statement would give the value of the other labels. Is there another better way of doing this?

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-24T13:30:46+00:00Added an answer on May 24, 2026 at 1:30 pm

    I am confused with how to proceed. I was thinking that adding 4 to
    each statement would give the value of the other labels. Is there
    another better way of doing this?

    Simpler is better (mips!). If each instruction takes 4 bytes, then that´s preety much it.

    100:     add $t1, $t2, $t3
    104:     addi $t1, $t1, 10
    108:     add $t4, $t2, $t2
    112:     add $t6, $t3, $t3
    116:     beq $t1, $t4, 132
    120:     add $t1, $0, $0
    124:     bne $t6, $t4, 136
    128:     add $t7, $t7, $t7
    
    132:     slt $t1, $t4, $t6
    136:     add $t7, $t7, $t1
    140:     jr $ra
    

    By the way, who gives memory addresses in decimal notation?

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

Sidebar

Related Questions

I was stuck in solving the following interview practice question: I have to write
I'm stuck with the JavaScript code I am using for solving a problem which
Really stuck on trying to write code to unzip a file or directory on
Kinda stuck here... I have an application with lets say 5000 rows of data
I'm stuck on a PHP 4 server, and I would like to start moving
Ive gotten some great help here and I am so close to solving my
Illustration for my general question: Working with WPF I'm often stuck with the following
I have the following problem in my Data Structures and Problem Solving using Java
I am stuck while solving this question, What is the minimum number of 2
I am stuck at solving Accelerated C++ exercise 8-5 and I don't want to

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.