Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

16. List the 3 types of memory partitions as discussed in class. 17. In which of the 3 types of memory are static variables stored?

16. List the 3 types of memory partitions as discussed in class.

17. In which of the 3 types of memory are static variables stored?

18. There are two things the NOP instruction accomplishes while doing nothing, list one.

19. Given ecx = 0x0000007B, so cl=0x7B, what is the minimum value that when added, would set the OVERFLOW flag? add cl, __________ ; minimum value to cause OF to be set

Short Answer (40 pts)

20. (4 pts) Given esp = 0x18F448, what is value of eax after executing a pop eax instruction? What is esp after executing the pop instruction? 0018FF44 B0 CA CC BE EF BE AD DE eax = __________ esp = __________

21. (12 pts) Given that [ ebp - 0x14 ] refers to a local variable named tmpD = 0xDE76A1 and ebp = 0x1288C.

CODE A: CODE B: . mov ecx, [ebp - 0x14] vs. lea ecx, [ebp 0x14] push ecx push ecx call func1 call func1

a. (4 pts) Briefly describe the difference between the CODE A instructions and the CODE B instructions.

b. (4 pts) For each one, show what ecx looks like on the stack.

Stack CODE A: CODE B: 0x12880

c. (4 pts) Show the matching C function call for each.

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 Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago