Write a mips assembly language program

Assignment Help Computer Engineering
Reference no: EM13322621

Write a MIPS assembly language program that will cover the following steps:

Prompt the user to enter a first integer named int1

Prompt the user to enter a second integer named int2

Compute int1+int2-240 // don't use subi

Print the value of the result together with a message

Repeat

The program should enforce the rule that the two entered integers must be in the interval [50, 500]. If the entered integer is not in the specified range, prompt again the user to enter an integer in the specified range.

Create a case that will allow the user to exit the program.

*Im having a difficult time writing this code. I usually write code in java and c++ hence me asking this question. Thanks!*

Reference no: EM13322621

Questions Cloud

What is the chlorine concentration when the tank is put back : A water tower containing 4000 m3 of water has been taken out of service to install a chlorine monitor. The concentration of chlorine in the water tower was 2.0 mg/L when the tower was taken out of service.
Benefits of enterprise agreements : Outline and analyse the nature, methods and benefits of enterprise agreements in enhancing workplace productivity.
Determine a sorption coefficient for the soil at the site : Chromium contamination is a problem at a number of hazardous-waste sites. At one site local concentrations of chromium reached 60,000 mg chromium/kg soil and 19,000 mg/L chromium in the water.
Circle dna or rna : Circle DNA or RNA
Write a mips assembly language program : The program should enforce the rule that the two entered integers must be in the interval [50, 500]. If the entered integer is not in the specified range, prompt again the user to enter an integer in the specified range.
What is the distance between original object and final image : An object is 20 cm to the left of a lens of focal length 10 cm. What is the distance between the original object and the final image
State the ksp value be higher or lower than the normal value : What effect on the value of Ca(OH)2's Ksp (6.5x10^-6 ) would sucking up some suspended calcium hydroxide solid have. Would the Ksp value be higher or lower than the normal value. Why
The phrase descent by modification : Which of the following best explains the phrase "descent by modification"?
Find the sign of the charge on the leaves of electroscope : A rubber rod is rubbed with fur. The fur is then quickly brought near the bulb of an uncharged electroscope. find the sign of the charge on the leaves of the electroscope

Reviews

Write a Review

Computer Engineering Questions & Answers

  Handling the error

Alter your program so that it consider the arguments provided at the command line are integers. If there are no arguments, print the message.

  Discuss summary of the services bench fitness center

At their eight locations, Bench fitness currently has one PC in the office and one PC in the entrance area. These computers are peer networked, but all are more than 5 years old.

  Design an application that instantiates five clients

The law firm of Howard, Fine and Howard wants to develop two classes- a Client class that holds data about the firm's clients and an attorney class that holds data about each of attorneys who work for the firm.

  Writing down the code

Suppose that the a, b and c are char variables has been declared. Write some code which reads the first character of next line into a.

  Why would you recommend a multi-core cpu

Discussion is designed to help you know the roles of hardware and software components in a modern computer system. For the purposes of this Discussion, assume that you are heading a team of 25 people working on a software development project.

  Contrast abstract classes and interfaces

evaluate and contrast abstract classes and interfaces

  Show them in the reverse order of their entry

What is the screen output of the code segment? Explain the reasoning behind your reply.

  How to create a checking account balance code

compute the balance by adding deposits and subtracting service charges and checks. Include buttons for calculate, Clear, Print, and Exit. Please put comments in the code.

  Which language would be more appropriate

The vehicle registration department for the State of Florida is becoming decentralized. Each county would now handle its own registration process and will issue its own license plates

  Osi layered structure and different protocols

List and discuss major de-merits of the layered approach to protocols in scholarly detail.Explain why data network communication and distributed applications.

  Progarm converts a number from roman numerals to decimal

Write down a program that converts a number from Roman numerals to decimal. It needs to consist of a class, romanType.

  Express the process of customer identification

Then, customer brings the videos to the front desk where an attendant identifies the customer using customer's ID Card, checks the customer's records in the system, and then enters information about rented videos into the system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd