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

  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