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 limit. 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. Then display it on the console.
Use the following pair of range variables, representing j & k , and the following 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: .IF, .ELSE, .ELSEIF, .WHILE, .REPEAT, etc