Write program mips assembly adds two integer and display sum

Assignment Help Basic Computer Science
Reference no: EM13235182

Write a MIPS assembly language program that adds two integers and displays the sum and the difference. In the .data section, define two variables num1 and num2 both words. Initialize num1 to 45617 10 and num2 to F2D 16 (use 0xF2D to initialize). Your main procedure should load the values of num1 and num2 into two temporary registers, and display them on the console window. Then add the values together, and use the print_int system call function to display the sum on the console window. Also compute the difference of two numbers and display it on the console window. (Reference: see Assignment 1) To print an integer on the console window, you must put the integer to be printed in the $a0 register, and the value 1 in the $v0 register. Then perform a syscall operation. This makes a call to the PCSPIM operating system which will display the integer in $a0 on the console window. Name your source code file assignment2.s. Your output format should look as follows: num1 is: XXX num2 is: XXX num1+num2 = XXX num1-num2 = XXX where XXX is the correct number for each

Reference no: EM13235182

Questions Cloud

Explain how is the rate of disappearance of ozone : How is the rate of disappearance of ozone related to the rate of appearance of oxygen in the following equation: 2 O3 (g) ? 3 O2 (g) (rate expression)
Explain how is the rate of disappearance of ozone : How is the rate of disappearance of ozone related to the rate of appearance of oxygen in the following equation: 2 O3 (g) ? 3 O2 (g) (rate expression)
Define how many valence electrons : How many valence electrons are there in a Cr atom, Which of the following 1M solutions will have the highest concentration of ions
How bank losses from mortgage backed securities could lead : Explain how bank losses from mortgage backed securities could lead to an investment bank becoming insolvent and going bankrupt. Your explanation should use a somewhat realistic T-account (see thenotes), the concept of leverage
Write program mips assembly adds two integer and display sum : Write a MIPS assembly language program that adds two integers and displays the sum and the difference.
Illustrate the us wholesale market for roses : illustrate the U.S. wholesale market for roses. Show on the graph the equilibrium in that market with no international trand and the equilibrium with free trade. Mark on the graph the quantity of roses produced in the United States
Explain what is the molarity of a saturated aqueous solution : The Ksp for BaCO3 is 5.0 x 10-9. What is the molarity of a saturated aqueous solution of BaCO3
Explain current have to be applied to plate of nickel : A current of 5.64 A is pass through a Ni(NO3)2 solution. How long (in hours) would this current have to be applied to plate out 8.80 g of nickel
What is data integrity and in what way it is implemented : What is data integrity and in what way it is implemented in DBMS MS Access

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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