Question
Go Assemble (3) Run the program by clicking Run Given an array A with 8 integers (in words), the 8 elements of the array ,the
Go Assemble (3) Run the program by clicking Run Given an array A with 8 integers (in words), the 8 elements of the array ,the array A is defined as, A = [1 -2 3 -4 5 -6 7 -8] Calculate the followings in the array A using for loop. i. Half of the sum of all elements (i.e. sum of all values /2, take the integer part only) ii. sum of all positive elements iii. sum of all negative elements (consider 0 as positive value) Sample Output: Half of the sum = -2 Sum of all positive elements = 16 Sum of all negative elements = -20 (1) Save the file as lab4_1.asm (2) Assembly the program by clicking Run
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started