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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, alyssacyamamoto8050
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
image
Computers and Technology, 22.06.2019 22:40, nsuleban9524
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
image
Computers and Technology, 24.06.2019 04:30, BobBball9126
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, titalili0204
Adrawing that places all lines parallel to the z axis at an angle from the horizon is 99 ! a. an oblique drawing b. a perspective drawing c. an auxiliary view d. a one-point perspective drawing
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 in other subjects:

Konu
Mathematics, 28.05.2021 16:20
Konu
Mathematics, 28.05.2021 16:20