Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help finding the absolute addresses and the stack values of a stack frame. I've gotten as far as I can go in creating

I need help finding the absolute addresses and the stack values of a stack frame. I've gotten as far as I can go in creating the stack frame in the picture below, and need help with the remainder. I know The absolute addresses should be the address of the line above minus the size of the current line (value in bytes), but then they have to be represented in hexadecimal format? That's where I'm having the trouble. Please see the below stack frame of what I have and please help fill in the rest. The top rows are the startup stack frame that was given, the values are arbitrary. Please help fill in the rest with a quick explanation on how you got there, or just a few examples to get me going would be great. Thank you!
example BB9h minus the return object gives you BB5h? and so on but how did that cone out that way looking at the ASCII Value table i dont see how 9-3=5?
image text in transcribed
i was able to solve this thank you
value Relative Address Description Stack Value Absolute Address BBFh BB9h BP+6h BP Function Return Address Previous Frame Address BB5h BPuch BP+6h BP BP-4h 1014h Oh -main ?? ?? BB9h ?? Return Object (int) Function Return Address Previous Frame Address Resultfint) 3 6 6 3 god BP+15h BP+Odh BP+9h BP+6h BP ?? 176 77 580h Return object (long) X(int) Y(short) Function Return Address Previous Frame Address 3 6 6 BP+15h BP+Odh BP9h BP+6h BP -gcd2 72 77 22 1E0h Return object (long) X(int) YIshort) Function Return Address Previous Frame Address 4 3 6 6 Bd3 BP+15h BP+Odh BP+9h BP+6h . 22 22 11 1E0n Return object (tong) Xiint) Y(short) Function Return Address Previous Frame Address 8 4 3 6 6 ged -11 BP+15h BP+Odh BP+9h BP+61 BP Return object longi Xunt: short Function Return Address Previous Frame Address 8 F4 3 5 5 1E06 value Relative Address Description Stack Value Absolute Address BBFh BB9h BP+6h BP Function Return Address Previous Frame Address BB5h BPuch BP+6h BP BP-4h 1014h Oh -main ?? ?? BB9h ?? Return Object (int) Function Return Address Previous Frame Address Resultfint) 3 6 6 3 god BP+15h BP+Odh BP+9h BP+6h BP ?? 176 77 580h Return object (long) X(int) Y(short) Function Return Address Previous Frame Address 3 6 6 BP+15h BP+Odh BP9h BP+6h BP -gcd2 72 77 22 1E0h Return object (long) X(int) YIshort) Function Return Address Previous Frame Address 4 3 6 6 Bd3 BP+15h BP+Odh BP+9h BP+6h . 22 22 11 1E0n Return object (tong) Xiint) Y(short) Function Return Address Previous Frame Address 8 4 3 6 6 ged -11 BP+15h BP+Odh BP+9h BP+61 BP Return object longi Xunt: short Function Return Address Previous Frame Address 8 F4 3 5 5 1E06

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_2

Step: 3

blur-text-image_3

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

1. Who will you assemble on the team?

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago