Calculate the sum of the values from the first number

Assignment Help Computer Engineering
Reference no: EM132171706

USING MIPS ASSEMBLYLANGUAGE W/ NO PSUEDO CODE.

NO li or la! all basic instructions

Need help with these two functions!

1. print

$a0 - address of a string to print ,$a1 - value of an integer value to print, $a2 - boolean value (1 or 0)

This function must first print the string, then if $a2 holds a 1 (for true) print the integer that is in $a1. Both outputs must be on the same line. End the output with a newline.

2. main

a. Print your name by calling the print function (above). You will need to set the parameter registers before calling the function.

b. Print a prompt to enter an integer by calling the print function. You will need to set the parameter registers before calling the function.

c. Read the integer entered. This is the number of times to repeat step d.

d. Repeat the following multiple times according to the number read in step c

i. Print a prompt to enter an integer by calling the print function. You will need to set the parameter registers before calling the function.

ii. Read the first number.

iii. Print a prompt to enter a second integer by calling the print function. You will need to set the parameter registers before calling the function.

iv. Read the second number.

v. If the first number is greater than the second number Print an error message by calling the print function. You will need to set the parameter registers before calling the function

ELSE

Calculate the sum of the values from the first number THROUGH the second number Print the sum of values by calling the print function. You will need to set the parameter registers before calling the function.

e. Print an ending message by calling the print function

f. End your program.

Reference no: EM132171706

Questions Cloud

Why it is critical to developing good software : Using the parts of a house as an analogy, which stage of the program development cycle is the foundation.
At what time does john catch the parachute : Assume that John leaves the airplane in the head down (area is 0.3 m) position 45 seconds after the parachute. At what time does John catch the parachute?
What is david z score : David received a raw score of 56. Given a mean, median, and mode of 50, and a standard deviation of 4:
Company has no other expenses : 21st Century Pen, Inc. has a ten year lease on the factory, an insurance contract for a year, and the company has no other expenses.
Calculate the sum of the values from the first number : Print a prompt to enter an integer by calling the print function. You will need to set the parameter registers before calling the function.
Does your ford motor company appear : Does your Ford Motor Company appear to be charging the same prices for its products that are being marketed to specific countries?
Write a function select of this type : The list and should return a new list containing only those elements of the original list for which f returned true.
New consumer surplus : And also, when the price ceiling is effective does the new consumer surplus compared to the equilibrium goes up, or goes down? (please provide explanation)
You audit cash rather than Timothy : Cash Audit Assignment - I would prefer that you audit cash rather than Timothy (let him stick to vouching documents to keep him out of trouble)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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