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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:21:27+00:00 2026-06-03T04:21:27+00:00

For example, I want to print this number A0090000(16) in unsigned decimal number in

  • 0

For example, I want to print this number A0090000(16) in unsigned decimal number in MIPS.
So the print result should be 2684944384(10).
But I got stuck because I only know the assembly code to print signed numbers.

The code is like this:

li    $v0, 1    #System call code for print_int
li    $a0, 5    #integer to print
syscall

So if I put the A0090000(16) value instead of ‘5’ in that code,
it will print a minus decimal value(since MSB is 1), which is -1610022912(10)
but I want to have the result 2684944383(10), which is read as an unsigned number.

How can I do that?

  • 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-03T04:21:28+00:00Added an answer on June 3, 2026 at 4:21 am

    Fill a string with the digits of your number, in reverse order, by successively dividing the value by 10 (unsigned) and adding the remainder’s digit onto the start of your string; then print the string.

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

Sidebar

Related Questions

I want to print many, for example 100, floating point number into one file
I want to point a subdomain such as: example.domain.com to a URL like: domain.com/something/this.php
I want to print an attribute value based on its name, take for example
I want to print the date in french language. For example Janvier and not
Using another code example on stackoverflow we've got a paginated print report with headers
I want to print a range of numbers to STDOUT. But rather than count
Example: I have a float value like 1294322.0000000, and I want to print it
GMP allows to print a mpz_t up to base 62, but I want to
For example I want to use custom logger: logger = require('basic-logger'), logger.setLevel('info') var customConfig
For example: I want to know if there are images in a directory (eg.

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.