Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Observe changes occurred in value of all registers, which is accessed by operand in Debug Mode, then fill the blanks. (Write all esi value
Observe changes occurred in value of all registers, which is accessed by operand in Debug Mode, then fill the blanks. (Write all esi value in L1 and ebx value in L2) TITLE Practice08-1 INCLUDE Irvine32. inc .data .code arrayD DWORD 10000h, 20000h, 30000h main PROC push ebp mov ebp, esp mov esi, OFFSET arrayD mov ecx, LENGTHOF arrayD push ecx call ArraySum pop ebp call WriteHex 55 ; ebp = h ; esp = h ; esi = h ; ecx = h call Crif exit main ENDP ArraySum PROC push ebp mov ebp, esp mov ecx. [esp+8] L1: input array to stack push [esi] esp ; ecx = h : esi = h add esi, 4 loop L1 mov ecx, [esp+20] ; ecx = h mov eax, 0 L2:;add stack pop ebx ; ebx = h add eax, ebx loop L2 pop ebp ret 4 ArraySum ENDP END main
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started