Question: Exercise 1. Summing Array Elements in a Range Write a snippet of code that calculates the sum of all array elements falling within the range

 Exercise 1. Summing Array Elements in a Range Write a snippet

Exercise 1. Summing Array Elements in a Range Write a snippet of code that calculates the sum of all array elements falling within the range j...k (inclusive); j is the lower limit and k is the upper. In other words, when the array element is outside of the range, don't add it to the sum. Put the sum in the EAX register. Use this range and these two data sets for your test cases: .data lowerLimit dword 20 upperLimit dword 40 array_1 sdword 10,30,25,15,17,19,40,41,43 array_2 sdword 10,-30,25,15, -17,55,40,41,43 IMPORTANT: for this exercise, NOT allowable to use any one of these directives: JF, .ELSE, .ELSEIF

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!