Question
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
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