Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions