Complete the following code: .data Arr dword 3, 4, 1, 8, 2, 5 len dword 6 .code main proc ; In HLL the header of a function to find the total values of an unsigned array could be written: int findTotal(int arr[], int len); Add the code that is appropriate and would be equivalent to the HLL ;statement.note that int arr indicates that the address of the array ; is passed. ; add your code here.... call writeDec exit main endp ;The following proc finds the total values of the array. Assume the ;parameters are in the order given by the HLL function header above. ;Follow 32-bit stdcall protocol where the callee cleans the stack. ;You can't use any global variables inside your procedure. ;You need to preserve any register you might use in the procedure. You can't use uses operator. findTotal proc ; add your code here... findTotal endp end main ; sample run: 23

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 1PP: (Statistics) a. Write a C++ program that reads a list of double-precision grades from the keyboard...
icon
Related questions
Question

quick pls

Complete the following code:
.data.
Arr dword 3, 4, 1, 8, 2, 5
len dword 6.
.code
main proc
; In HLL the header of a function to find the total values of an unsigned array
; could be written: int findTotal (int arr[ ], int len);
Add the code that is appropriate and would be equivalent to the HLL
;statement.note that int arr indicates that the address of the array
; is passed.
; add your code here...
call writeDec
exit
main endp
;The following proc finds the total values of the array. Assume the
;parameters are in the order given by the HLL function header above.
;Follow 32-bit stdcall protocol where the callee cleans the stack.
;You can't use any global variables inside your procedure.
You need to preserve any register you might use in the procedure.
You can't use uses operator.
findTotal proc
; add your code here....
findTotal endp
end main
; sample run:
23
Transcribed Image Text:Complete the following code: .data. Arr dword 3, 4, 1, 8, 2, 5 len dword 6. .code main proc ; In HLL the header of a function to find the total values of an unsigned array ; could be written: int findTotal (int arr[ ], int len); Add the code that is appropriate and would be equivalent to the HLL ;statement.note that int arr indicates that the address of the array ; is passed. ; add your code here... call writeDec exit main endp ;The following proc finds the total values of the array. Assume the ;parameters are in the order given by the HLL function header above. ;Follow 32-bit stdcall protocol where the callee cleans the stack. ;You can't use any global variables inside your procedure. You need to preserve any register you might use in the procedure. You can't use uses operator. findTotal proc ; add your code here.... findTotal endp end main ; sample run: 23
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,