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 12:40
The most complicated four letter word
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
You know the right answer?
Write a mips assembly language program to solve the following problem. for a set of integers stored...
Questions
question
Mathematics, 21.05.2021 23:40
question
Mathematics, 21.05.2021 23:40
Questions on the website: 13722363