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 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
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, 08.07.2021 22:10
Questions on the website: 13722361