Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 ) Show all values in the stack until line A runs . 2 ) Show the output of this code. esparr byte ' a

1) Show all values in the stack until line A runs.2) Show the output of this code. esparr byte 'a','b','a'.codemain procsub esp, 4push lengthof arrPush offset arrcall p1Pop eaxCall writeDecexitmain endpAddress increasesp1 procPush ebpMov ebp, espPush ebxPush ecxPush eaxpush edxmov ebx, [ebp +8]mov ecx, [ebp +12]Xor eax, eaxmov [ebp +16], eaxlea edx, [ebp +16] ; edx = ebp +16L1: Push [ebx]push edxCall p2inc ebxLoop L1pop edxPop eaxPop ecxPop ebxPop ebpRet 8P1 endpP2 procPush ebpMov ebp, espPush eaxpush esiMov eax, [ebp +12] Cmp al,'a' Jne L1mov esi, [ebp +8]inc dword ptr [esi] ;Line AL1: pop esi Pop eax Pop ebpRet 8p2 endpend 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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

=+beliefs about the brand, product, or service?

Answered: 1 week ago

Question

=+4. Did your message properly reflect the brand's image?

Answered: 1 week ago