Two argument integers and returns the operation

Assignment Help Basic Computer Science
Reference no: EM13934770

1.The over all program should ask user for two integer numbers (a, b) and target arithmetic operation (+,-,*./) and will print the result of the operation with a comment if the result produced is correct or not.

2. Write add_normal, sub_normal, mul_normal and div_normal which all takes $a0 and $a1 as two argument integers and returns the operation results in $v0 (and in $v1 for Hi result in mul or div). All these *_normal uses only native arithmetic operation of MIPS.

3. Write add_logic, sub_logic, mul_logic and div_logic which all takes $a0 and $a1 and two argument integer and returns the operation results in $v0 (and in $v1 for Hi result in mul or div). All these *_logic uses only native logic operation of MIPS.

4. Write two procedure au_normal and au_logic which takes two integers and one operation code for +,-,* and / in $a0, $a1 and $a2. These two procedure returns results in $v0 and $v1 ($v1 contains the Hi value of the result from * or /). The main program calls au_logic to determine the result and print the result as it gets back from the au_logic. This au_logic uses all the *_logic procedures implemented in #3. The main program also calls au_normal procedure to determine golden result and compare it with the result obtained from au_logic to determine pass or fail. It prints the result pass / fail. This au_normal uses all the *_normal procedure implemented in #2.

Reference no: EM13934770

Questions Cloud

Using a graphics application, such as microsoft powerpoint : What would be the most appropriate network topology to use on this network?
Determine the average cost of the crate : After a month, the store clerk informs you that the same crate of wine now costs $82. However, there are 7 bottles in a crate. To the nearest cent, determine the average cost of the crate from last month to now.
Find the future value of the annuities : If you deposit $10,000 in a bank account that pays 10% interest annually, how much will be in your account after 5 years? 4-2 What is the present value of a security that will pay $5,000 in 20 years if securities of equal risk pay 7% annually? 4-12 F..
Discount factors-spot interest rates-forward interest rates : Take the bond price data given on 50 bonds. Each bond has a face value of $100 and pays the given coupon semi-annually starting at the next coupon payment dates as given. Follow the steps discussed in class to estimate the term structures of discount..
Two argument integers and returns the operation : The over all program should ask user for two integer numbers (a, b) and target arithmetic operation (+,-,*./) and will print the result of the operation with a comment if the result produced is correct or not.
Providing a historical context and legal framework : Select and discuss 3 landmark legal cases (from the list above) that involve Asian Pacific Americans between 1885- 1990. Discuss each one, providing a historical context and legal framework from which to understand these cases impact on Asian Pac..
Identify entity and relationships that implied by geocaching : Your task is to identify the entities and relationships that are implied by the geocaching cache page (see below). In effect, you will be analysing the structure of the database that supports the site.
Using datagrid in an application : Update the field named fldQuestionDescription.
Sum-of-products representation : Run the program using step mode. Put the code inrto the online assignment area. Also indicate the new contents of the register affected by each instruction. For this you need to use the step mode.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Use a random-number generator to pick each card

Your program must incorporate a two-dimensional array to represent the suit and the value of each card dealt to a player, keep track of which cards have been dealt to which player, and use a random-number generator to pick each card to be dealt to..

  Design a combinational circuit

Design a combinational circuit that accepts a 3-bit number and generates a 6-bit binary number equal to the square of the number. Thanks!

  Disaster-recovery processes and business-continuity planning

The management at Gem needs you to formulate an incident-response policy to reduce network down time if future incidents occur. Develop an incident-response policy that covers the development of an incident-response team, disaster-recovery processes..

  Making it eco-friendly

When you hear the term "making IT eco-friendly", explain how this is related to Information Technology and the environment.

  Explain how characters are represented in computers

List and describe the various ways of entering alphanumeric data into computers. Explain how characters are represented in computers. For a given computer instruction, what are the factors that determine how binary digits are interpreted

  Realize the policy covered before

What are two items that you didn't realize the policy covered before?

  Add a prompt to the condosales

Add a prompt to the CondoSales application to ask the user to specify a (1) garage or a (2) parking space, but only if the condo view selection is valid

  Compare and contrast the various cognitive models

Compare and contrast the various cognitive models.

  What is the expected total number of tickets receive

In an arcade, you play game A 10 times and game B 20 times. Each time you play game A, you win with probability 1/3 (independently of the other times), and if you win you get 3 tickets (redeemable for prizes), and if you lose you get 0 tickets. Game ..

  Splits the word into a unicode character array

These tasks entail developing a single program that contains methods of the following tasks. Your program may run either on the command-line or as an applet. Write methods that take a word input by the user (10%) and then: (10%) splits the word int..

  Market for ethanol in the united states

Consider the market for ethanol in the United States depicted in the figure to the right. Assume the world price of ethanol is $0.90 per gallon, and at that price the United States can buy as much ethanol as it wants without causing the world pric..

  Full-duplex trunk between end office-intermediate switch

In a simple telephone network comprising of two end offices and one intermediate switch with 1-MHZ full-duplex trunk between each end office and intermediate switch.

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