Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I feel like my basic understanding of these problems are not good. It would be great if someone could help. CS413-02 Homework 2-30 pts Due:
I feel like my basic understanding of these problems are not good. It would be great if someone could help. CS413-02 Homework 2-30 pts Due: February, 11 (Hard copy at the beginning of the class and soft copy on Canvas) 1. Given a FD stack, stack pointer and frame pointer in the initial state shown below. Show the values stored on the stack as a result of execution of the below set of instructions. Indicate the old and new positions of top of stack, updated stack pointer (13) and frame pointer on the stack diagram (10 pts) STRO, [fp,#8] ADD 13,r2,#13 STR 13, [fp,#-4) Memory Registers Ox00000000 33 57 1701 12 TOS 60 OxFFFFFFFF 2. Given a stack and stack pointer in the initial state shown below and register values as specified, show the values stored on the stack after the following instruction is executed. Indicate the old and new positions of top of stack and show where the updated stack pointer (r13) points on the stack diagram. (10 pts) STMFA r13!, {r0-r2,14) Memory Registers 0x00000000 22 57 1701 12 r13 TOS OxFFFFFFFF 3. Given a stack and stack pointer in the initial state shown below and register values as specified, show the values stored on the stack after the following instruction is executed. Indicate the old and new positions of top of stack and show where the updated stack pointer (r13) points on the stack diagram. (10 pts) STMFD r13!, {0-2) Memory Registers 0x00000000 22 33 57 1701 12 r13 TOS 60 OxFFFFFFFF CS413-02 Homework 2-30 pts Due: February, 11 (Hard copy at the beginning of the class and soft copy on Canvas) 1. Given a FD stack, stack pointer and frame pointer in the initial state shown below. Show the values stored on the stack as a result of execution of the below set of instructions. Indicate the old and new positions of top of stack, updated stack pointer (13) and frame pointer on the stack diagram (10 pts) STRO, [fp,#8] ADD 13,r2,#13 STR 13, [fp,#-4) Memory Registers Ox00000000 33 57 1701 12 TOS 60 OxFFFFFFFF 2. Given a stack and stack pointer in the initial state shown below and register values as specified, show the values stored on the stack after the following instruction is executed. Indicate the old and new positions of top of stack and show where the updated stack pointer (r13) points on the stack diagram. (10 pts) STMFA r13!, {r0-r2,14) Memory Registers 0x00000000 22 57 1701 12 r13 TOS OxFFFFFFFF 3. Given a stack and stack pointer in the initial state shown below and register values as specified, show the values stored on the stack after the following instruction is executed. Indicate the old and new positions of top of stack and show where the updated stack pointer (r13) points on the stack diagram. (10 pts) STMFD r13!, {0-2) Memory Registers 0x00000000 22 33 57 1701 12 r13 TOS 60 OxFFFFFFFF
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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