Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Given the following disassembly of a short function: 0x00001fb 6 0x00001fb7 0:00001fb9 0x00001 fbc 0x00001fb f 0x00001fcl 0x00001fc2 func+0>: push %ebp : mov! %esp,
1. Given the following disassembly of a short function: 0x00001fb 6 0x00001fb7 0:00001fb9 0x00001 fbc 0x00001fb f 0x00001fcl 0x00001fc2 func+0>: push %ebp : mov! %esp, %ebp : subl $0x8,%esp : addl %eax, %eax : leave , at address 0x00001 fb9: %esp 0x300 %ebp 0x308 0x300: 0x00000000 0x304: 0x00000000 0x308: 0x00000 328 0x30c: 0x00001fdc 0x310: 0x00000003 A) what is the value in %eax (the return value of the function) after we return and leave the function (after instruction )? B) What was the old value of the stack pointer (sesp) before we executed the first instruction of this function (at )? c) what is the old value of the base pointer (%ebp) before we entered this function? 1. Given the following disassembly of a short function: 0x00001fb 6 0x00001fb7 0:00001fb9 0x00001 fbc 0x00001fb f 0x00001fcl 0x00001fc2 func+0>: push %ebp : mov! %esp, %ebp : subl $0x8,%esp : addl %eax, %eax : leave , at address 0x00001 fb9: %esp 0x300 %ebp 0x308 0x300: 0x00000000 0x304: 0x00000000 0x308: 0x00000 328 0x30c: 0x00001fdc 0x310: 0x00000003 A) what is the value in %eax (the return value of the function) after we return and leave the function (after instruction )? B) What was the old value of the stack pointer (sesp) before we executed the first instruction of this function (at )? c) what is the old value of the base pointer (%ebp) before we entered this function
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