Question

x86, 32bit system language question 1. Your stack looks like 0x1050 55 0x1054 57 <- ESP...

x86, 32bit system language question
1. Your stack looks like
0x1050 55
0x1054 57 <- ESP
0x1058 58
You execute push 0x1050 instruction. Stack grows down. How does you stack look like after this instruction?

2. Your stack looks like
0x1050 55
0x1054 57 <- ESP
0x1058 58

You execute pop eax instruction. Stack grows down. What is inside eax and how does you stack look like after this instruction?


Homework Answers

Answer #1

Question 1.

Initial State of Stack

0x1050 55

0x1054 57 <- ESP

0x1058 58

Execution of instruction

push 0x1050

step 1. (Increment Stack Pointer) ESP = ESP - 4 = 0x1054 - 0x4 = 0x1050

step 2. Store memory value of 0x1050 in new ESP location

step 3. So 0x1050 memory location is updated by it's value itself

Final State of Stack

0x1050 55 <- ESP

0x1054 57

0x1058 58

Question 2

Initial State of Stack

0x1050 55

0x1054 57 <- ESP

0x1058 58

Executing the instruction

pop eax

step 1. Store value of memory location pointed by ESP to register eax = 57

step 2. (Decrement Stack Pointer) ESP = ESP + 4 = 0x1054 + 0x4 = 0x1058

Final State of Stack

0x1050 55

0x1054 57

0x1058 58 <- ESP

eax = 57

Thank you! Hit like if you like my work.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
I've posted this question like 3 times now and I can't seem to find someone that...
I've posted this question like 3 times now and I can't seem to find someone that is able to answer it. Please can someone help me code this? Thank you!! Programming Project #4 – Programmer Jones and the Temple of Gloom Part 1 The stack data structure plays a pivotal role in the design of computer games. Any algorithm that requires the user to retrace their steps is a perfect candidate for using a stack. In this simple game you...
Answer the following question for any pilgrimage of your choice 1) What is name of your...
Answer the following question for any pilgrimage of your choice 1) What is name of your pilgrimage site? 2) Where is located? 3) Can you make a pilgrimage at any time or does it need to be on a certain day to coincide with a celebration/ceremony/time of year? 4) Can you visit alone or must you be with a group? 5) Do you know anyone that has been to this place? 6) If so, asked them for five things you...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
Question 51 Tubular reabsorption results in solutes entering the ___________; tubular secretion causes solutes to enter...
Question 51 Tubular reabsorption results in solutes entering the ___________; tubular secretion causes solutes to enter the ___________. Select one: a. blood; filtrate b. Distal convoluted tubule; Glomerulus c. Nephron loop; Renal corpuscle d. filtrate; blood Question 52 Complete 2.00 points out of 2.00 Flag question Question text Alcohol acts as a diuretic because it: Select one: a. increases the rate of glomerular filtration. b. inhibits the release of anti-diuretic hormone (ADH). c. is not reabsorbed by the tubule cells....
Please read through the article below and answer the question at the end of the article....
Please read through the article below and answer the question at the end of the article. High-Performing Teams Need Psychological Safety. Here’s How to Create It “There’s no team without trust,” says Paul Santagata, Head of Industry at Google. He knows the results of the tech giant’s massive two-year study on team performance, which revealed that the highest-performing teams have one thing in common: psychological safety, the belief that you won’t be punished when you make a mistake. Studies show...
do all five questions Question 1 20 pts Ignoring the effects of air resistance, if a...
do all five questions Question 1 20 pts Ignoring the effects of air resistance, if a ball falls freely toward the ground, its total mechanical energy Group of answer choices increases remains the same not enough information decreases Flag this Question Question 2 20 pts A child jumps off a wall from an initial height of 16.4 m and lands on a trampoline. Before the child springs back up into the air the trampoline compresses 1.8 meters. The spring constant...
Background Almost all animal and plant cells require oxygen and give off carbon dioxide. This is...
Background Almost all animal and plant cells require oxygen and give off carbon dioxide. This is called gas exchange and it occurs by passive diffusion. Some animals do all or most of their gas exchange across their skin (for example amphibians) but they have very low metabolisms and use very little oxygen and get rid of very little carbon dioxide. On the other hand humans (and other mammals) have very high metabolic requirements and we can’t rely on gas exchange...
QUESTION 1 1. Brianna is trying to increase her chances of being promoted to vice president...
QUESTION 1 1. Brianna is trying to increase her chances of being promoted to vice president by working to build good work relationships with other managers outside her own department. Brianna's behavior should be viewed as dysfunctional politics. functional politics. coercive power. functional influence. 2 points QUESTION 2 1. The Gingerbread Factory has a separate unit that makes their chocolate crunch cookies and another unit that is completely responsible for all operations in producing their ginger snap cookies. The Gingerbread...
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...
1. Read the following instructions on 'How to Repair an Electric Fan' which are written in...
1. Read the following instructions on 'How to Repair an Electric Fan' which are written in three different parts before answering the question given. The instructions below are considered ineffective as they are not following the effective instructions strategy. 1 Turn your fan on to make sure that the motor works. Plug your fan in and turn it on to the highest power setting. If the fan blades move a little or it starts to turn, the motor is probably...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT