Assembly MASM problem

Words: 185
Pages: 1
Subject: Uncategorized

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

Let Us write for you! We offer custom paper writing services Order Now.

REVIEWS


Criminology Order #: 564575

“ This is exactly what I needed . Thank you so much.”

Joanna David.


Communications and Media Order #: 564566
"Great job, completed quicker than expected. Thank you very much!"

Peggy Smith.

Art Order #: 563708
Thanks a million to the great team.

Harrison James.


"Very efficient definitely recommend this site for help getting your assignments to help"

Hannah Seven