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 BE sumArrayAbove10 I will dislike if you copy the same answer I will post the wrong answer and the question use assembly language only

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
Get step-by-step solutions from verified subject matter experts
