Question: Based on the code given below, please show the decimal contents of the array after execution has completed. The address of array is 0x2200. Show

Based on the code given below, please show the decimal contents of the array after execution has completed. The address of array is 0x2200. Show the decimal contents of array after execution returns to label retAdd

Array Contents for: 0x2200: 0x2204: 0x2208: 0x220C:

MAXSIZE = 4

.data

array DWORD MAXSIZE DUP(?)

.code

main PROC

push MAXSIZE

push 8

push OFFSET array

call whatzit

retAdd:

;....

exit

main ENDP

whatzit PROC

push ebp

mov ebp,esp

mov edi, [ebp+8]

mov eax, 0

mov ebx, [ebp+12]

mov ecx, [ebp+16]

mov edx, 0

fill:

add eax, ebx

mov [edi+edx]

inc ebx

dec eax

add edx. 4

loop fill

pop ebp

ret 12

whatzit ENDP

END main

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!