Question: don't copy this answer because it's incorrect! the function name SHOULD BE sumArrayAbove10 I will dislike if you copy the same answer I will post

 don't copy this answer because it's incorrect! the function name SHOULD

don't copy this answer because it's incorrect! the function name SHOULD BE sumArrayAbove10 I will dislike if you copy the same answer I will post the wrong answer and the question use assembly language only

BE sumArrayAbove10 I will dislike if you copy the same answer I

Write a function named sumArrayAbove 10 that takes a pointer PArray to an array of DWORD and an integer arraySize of type DWORD. Then sum all values of the array above 10 and return the sum as a third parameter INCLUDE Irvine32.inc 1 N=10 .data array SDWORD N DUP(-10,-8,-6,-4,-2,-1,1,3,5,7) j DWORD ? k DWORD ? . code main PROC call clrscr mov j, 0 mov k, 10 mov ESI, OFFSET array mov ECX, N. call SummingArrayElementsInRange call WriteInt call crlf mov j, -10 mov k, o mov ESI, OFFSET array mov ECX, N call SummingArrayElementsInRange call WriteInt call crlf call WaitMsg exit main ENDP SummingArray ElementsInRange PROC push ecx push esi moveax, 0 11: mov ebx, [esi] cmp ebx, j jge true1 jmp next true 1: cmp ebx, k jle true2 jmp next true2: add eax, ebx next

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!