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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:39:37+00:00 2026-05-26T03:39:37+00:00

The title pretty much sums this up. I am writing a program in 32-bit

  • 0

The title pretty much sums this up. I am writing a program in 32-bit MIPS Assembly Language (using the MARS emulator) for a school project and I’m having zero luck reading in int values > 2,147,483,647.

I spent a decent amount of time hunting around the internet and in my book to no avail. This is not central to the assignment (which, if you happen to know it is impossible, you probably already realized) but curiosity is killing this cat. Now that I’ve hit this brick wall, I must know for sure.

Notes:

  1. I’m specifically looking for a way to grab an unsigned int as opposed to taking a float or a double.
  2. The standard code for grabbing an int with syscall:

    li $v0, 5
    syscall
    move $t0, $v0
    
  3. The error that occurs when 2 500 000 000 is passed at prompt for integer:

    Error in C:\DEV\....... line 57: Runtime exception at 
    0x004000034: invalid integer input (syscall 5)
    

Help me Obi-Wan, you’re my only hope!

  • 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-26T03:39:38+00:00Added an answer on May 26, 2026 at 3:39 am

    You’ll need to use a different system call — MARS is throwing the exception, not anything “inside” the MIPS CPU. Try, for instance, syscalls 8 or 12 (read string and read character). Note that, as a result, you’ll have to implement a lot more of the parsing yourself to make these work.

    Alternatively, you might try reading a double (syscall 7) and converting it to an integer…

    There’s a full list of MARS syscalls online at:

    http://courses.missouristate.edu/KenVollmar/MARS/Help/SyscallHelp.html

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

Sidebar

Related Questions

Title pretty much sums it up. I just found out about this function and
Title pretty much sums this up. How come it's possible that i can assign
The title pretty much sums it up - I have this tag in a
Title pretty much sums it up. The external style sheet has the following code:
Title pretty much sums it up. Is there a technical name given to a
The title pretty much sums it up: How can I get the server IP
Well the title pretty much sums the question. The only thing I found is
Yep -- the title pretty much sums it up. I've got quite a few
The title pretty much says it all. I'm using a TClientDataset to store an
The Title pretty much sums up my question. Why can't the following be done

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.