Problem 2 -PUSH and POP Instructions
1. Create the following assembly code
2. Use nasm and ld to create the executable
3. Use gef commands such as: break _start, step (s) or next (n) commands to analyze the stack region while pushing and popping off data to/from the stack. Observe how $rsp instruction address changes as data is pushed into the stack. What is your observation?
4. What strings and values were pushed into the stack?
5. Can the push instruction be used to push more than 4 bytes into the stack at a time? Explain
6. Observe registers content as data is pushed into and popped off the stack.
7. Attach the screen capture that demonstrates data pushed and pop off the stack and the final content of the registers after pop operation.
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.