subject

Write a mips assembly language program to solve the following problem. for a set of integers stored in an array, calculate the sum of the positive numbers and the sum of the negative numbers. the program should store these numbers in memory variables: positivesumand negativesum. numbers should be read from the array one at a time with a zero value (0) being used to signal the end of data (the zero value is acting as a "sentinel" value). for example, if your array has the values: 1010 -1510 -3010 2510 2010 -110 -2610 -1810 010, then your program should update the positivesumand negativesumvariables to 5510 and -9010, respectively. your assembly program should like this: .data array: positivesum: negativesum: .word 10 -15 -30 25 20 -1 -26 -18 0 .word 0 .word 0 .text .globl main main:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
At an open or uncontrolled intersection, yield if a. the cross road has more lanes than yours b. the cross road has fewer land than yours c. you’re on a state highway and the cross road is a secondary road d. do you have three or more passengers in your vehicle
Answers: 2
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
You know the right answer?
Write a mips assembly language program to solve the following problem. for a set of integers stored...
Questions