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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:53:10+00:00 2026-06-06T04:53:10+00:00

We run code from adress 8002000 to 80020028 and the question is what is

  • 0

We run code from adress 8002000 to 80020028 and the question is what is inside register $18 at when we are at the end. I think there might be 0x0E but I am really not sure how i got to this answer anymore. Anyone can explain?

And if we start at 80020000 and follow the instructions as written can an exception occur? If yes when can it occur?

8001FFF8    NOP 
8001FFFC    NOP
80020000    LUI     $16, 0x8002
80020004    ADDIU   $16, $16, 0x30
80020008    ADDI    $17, $00, 0x3
8002000c    SLL     $17, $17, 0x2
80020010    LW      $18, 0x4 ($16)
80020014    LW      $19, 0x0 ($16)
80020018    SW      $18, 0x8 ($16)
8002001C    NOP
80020020    ADD     $18, $18, $17
80020024    NOP
80020028    NOP
8002002C    NOP
80020030    ???
80020034    SRL     $00, $00, 0
80020038    SRA     $00, $00, 0
8002003C    SLLV    $00, $00, $00
80020040    NOP
80020044    NOP
  • 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-06-06T04:53:13+00:00Added an answer on June 6, 2026 at 4:53 am
    8001FFF8    NOP 
    8001FFFC    NOP
    80020000    LUI     $16, 0x8002
    80020004    ADDIU   $16, $16, 0x30
    

    $16 = 0x80020030

    80020008    ADDI    $17, $00, 0x3
    8002000c    SLL     $17, $17, 0x2
    

    $17 = 12 ( 3 << 2 )

    80020010    LW      $18, 0x4 ($16)
    

    $18 = 0x2 ( load value from 80020034 which disassembled is srl $0,$0,0 -> 0x2 )

    80020014    LW      $19, 0x0 ($16)
    

    $19 = ??? ( value under 0x80020030 not known )

    80020018    SW      $18, 0x8 ($16)
    

    store under 0x80020038 (0x2)

    8002001C    NOP
    80020020    ADD     $18, $18, $17
    

    $18 = 0xE ( 0x2 + 12 )

    80020024    NOP
    80020028    NOP
    

    $18 = 0xE ( nops don’t change anything )

    8002002C    NOP
    80020030    ???
    80020034    SRL     $00, $00, 0
    80020038    SRA     $00, $00, 0
    8002003C    SLLV    $00, $00, $00
    80020040    NOP
    80020044    NOP
    

    Exception in this code is possible ( I could miss something ):

    • at 80020018 sw instruction, if address if this fragment of memory is write-protected ( segmentation fault )
    • at 80020030 if executing code continues and execute this address ( illegal instruction )
    • at 80020010 if this fragment of memory is read-protected (very unlikely) ( segmentation fault )
    • at 80020000 if this fragment of memory is non-executable ( unlikely ) ( segmentation fault )
    • if addresses visible in this dump are not these visible by process which executes this code.. – hard to say without knowing environment and how this dump was got.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using to compile and run code from Features2D + Homography to find
I'm trying to run the code from here MDN: Generators and Iterators function fib()
I'm getting a segmentation fault everytime i want to run this code : from
I run the following code from command line: public class MemoryTest { public static
When I run this simple code: from pylab import * import numpy as np
When I try to run the following code from the REPL (playing with dynamic
I am trying to run the following code from within Eclipse: Process process =
I am trying to run someone else's (4 year old) code from sourceforge. I
This code is run from within a subclass of UITableViewCell CALayer* greenLayer = [CALayer
I'm using the code from MSDN's recv() page , but I changed the data

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.