Question & Answer: stack addresses that are not already complete and any other blank spaces. For fall credit, all spaces should be filled. Given…..

2017 01-CS 3843 Computer Organization-Exam #3-BONUS Page Stack Operations: (20 pts) 6. Make sure to fill in the stack (18 pts) Complete the stack frame given the following assembly code. addresses that are not already complete and any other blank spaces. For fall credit, all spaces should be filled ¢ip-ox 401A45 Given: Given: Fusc으 esp-ox18coo, ebpa0x18C04, Call to Fune0 → func0( 0xc099, 0xA9C5 12 ); 00401445 88 55 0c 00401A48 edx, [ebp+och) push edx push ea esp. 8 < .. eip doesnt get here push ebp 004019A 004019A 004019A6 C 45 F 78 A3 51 00 ebp-81, S1A378h 004019AD C7 45 rC 11 2 23 4Debp-41, 4D23 211h ebp. esp -eip stops Address Valuc Description 00 00 00 00 Local var in func 0x18C04 Ox18C08 0 8F 01 00 Previous D3 12 40 00 Return Address of function calling Funco Unknoan 7· (2 pts) The instruction at address 0x401 9AD adds a-4 to ebp before accessing the memory location specified in the now modified cbp. What tells the CPU that the value to add to ebp is a-4? 2017 01-CS 3843 Computer Organization-Exam #3-BONUS Page Help with no 2

Complete the stack frame given the following assembly code. Make sure to fill in the stack addresses that are not already complete and any other blank spaces. For fall credit, all spaces should be filled. Given: esp=0 times 18c00, ebp = 0 times 18c04, eip = 0 times 401A45 Given: Call to Func0 rightarrow func0(0 times c099, 0 times A9C512): The instruction at address 0 times 4019AD adds a -4 to ebp before accessing the memory location specified in the now modified ebp. What tells the CPU that the value to add to ebp is a -4?

Expert Answer

 

ANSWER::

Still stressed from student homework?
Get quality assistance from academic writers!