MIPS assembly

This project was awarded to XuTPbIu for $80 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description

Write a main program for the MIPS machine that calls a function “get_long” that uses syscall to repeatedly prompt the user to enter a string of decimal digits that represent a valid unsigned decimal integer in the range 0 to 9223372036854775807 (i.e. up to 63 bits in size). Valid strings may only contain the characters ‘0’ through ‘9’. All strings other than valid decimal integers should be rejected. If an invalid number is entered, then the function should return -1 (as an error code) in $v0, otherwise the function should return the 64-bit numeric value represented by the decimal string with the most significant bits in $v0 and the low part of the value in $v1. Entering 0 should cause the program to terminate.

The double precision floating point representation of the same decimal integer should also be produced. The program should use the print_double syscall to display the double precision float value.

This exercise involves converting between external and internal representation. The READ_INT syscall only accepts 32-bit integers and therefore should not be used to input the decimal integer value.

Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online