Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Chemical Principles

Authors: H. Stephen Stoker

11th Edition

0321814630, 978-0321814630

More Books

Students also viewed these Programming questions

Question

Do the measurement items or tools have content relevance?

Answered: 1 week ago

Question

22. Why is tPA not helpful in cases of hemorrhagepg105

Answered: 1 week ago