Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a)In the below code, how many arguments does function _Z4fiveiii and _Z3sixiii have? b) What is accomplished logically by the _Z3sixiii function? Please explain your

a)In the below code, how many arguments does function _Z4fiveiii and _Z3sixiii have?

b) What is accomplished logically by the _Z3sixiii function?

image text in transcribed

Please explain your answer

_Z3sixiii: push ebp mov ebp, esp push DWORD PTR [ebp+12] push DWORD PTR [ebp+8] push DWORD PTR [ebp+16) call_Z4fiveiii add esp, 12 leave ret Z4fiveiii: push ebp mov ebp, esp sub esp, 16 mov eax, DWORD PTR [ebp+8] sub eax, DWORD PTR [ebp+16] mov DWORD PTR [ebp-4], eax mov eax, DWORD PTR [ebp+12] add DWORD PTR [ebp-4), eax mov ecx, DWORD PTR [ebp-4] mov edx, 1431655766 mov eax, ecx imul edx mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR [ebp-4), eax mov eax, DWORD PTR [ebp-4] leave ret _Z3sixiii: push ebp mov ebp, esp push DWORD PTR [ebp+12] push DWORD PTR [ebp+8] push DWORD PTR [ebp+16) call_Z4fiveiii add esp, 12 leave ret Z4fiveiii: push ebp mov ebp, esp sub esp, 16 mov eax, DWORD PTR [ebp+8] sub eax, DWORD PTR [ebp+16] mov DWORD PTR [ebp-4], eax mov eax, DWORD PTR [ebp+12] add DWORD PTR [ebp-4), eax mov ecx, DWORD PTR [ebp-4] mov edx, 1431655766 mov eax, ecx imul edx mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR [ebp-4), eax mov eax, DWORD PTR [ebp-4] leave ret

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions