Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the next three questions, refer to this assembly program, and assume little endian. Note that each instruction takes 4-bytes. Address 0x00000000 0x00000004 0x000000

For the next three questions, refer to this assembly program, and assume little endian. Note that each Assume PC is set to: 0x00000008 On the next time step (in other words, after the instruction at PC=0x00000008 Assume PC is set to: 0x00000024 Assume SP is set to: 0x20017FFC On the next time step (in other words, after Assume the program has finished running and has entered the infinite loop with PC set to: 0x00000014. What

For the next three questions, refer to this assembly program, and assume little endian. Note that each instruction takes 4-bytes. Address 0x00000000 0x00000004 0x000000 | loop: 0x0000000C | 0x00000010 | 0x00000014 | end: B 0x00000018 | fun1: SUB 0x0000001C | PUSH {LR} 0x00000020 BL fun2 0x00000024 | POP {LR} 0x00000028 | BX LR 0x0000002C | fun2: MOV R8, #0x0000 0x00000030 MOVT R8, #0x2000 0x00000034 | LSL R1, RO, #2 0x00000038 ADD R8, R1 0x0000003C 1 STR RO, [R8] 0x00000040 BX LR | Code | main: MOVS RO, #0x3 | BEQ end BL CMP BGT fun1 RO, #0x0 loop end RO, #0x1 Assume PC is set to: 0x00000008 On the next time step (in other words, after the instruction at PC=0x00000008 executes), what will the contents of the following registers be? Enter all 32 bits for each, written in hexadecimal with the Ox included. PC: LR: Assume PC is set to: 0x00000024 Assume SP is set to: 0x20017FFC On the next time step (in other words, after the instruction at PC=0x00000024 executes), what will the contents of the following registers be? Enter all 32 bits for each, written in hexadecimal with the Ox included. SP: LR: Assume the program has finished running and has entered the infinite loop with PC set to: 0x00000014. What are the contents of these memory locations? Enter the 1-byte value for each address as an 8-bit hexadecimal number with the Ox included. Address: Ox2000000B 0x2000000A 0x20000009 0x20000008 0x20000007 0x20000006 0x20000005 0x20000004 0x20000003 0x20000002 Ox20000001 0x20000000 Contents

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

1 After the instruction at PC0x00000008 executes PC 0x00000008 4 0x0000000C LR ... 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

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

Recommended Textbook for

Computer Organization And Design The Hardware Software Interface

Authors: David A. Patterson, John L. Hennessy

4th Revised Edition

0123747503, 978-0123747501

More Books

Students also viewed these Programming questions

Question

To what kinds of data sets can the empirical rule be applied?

Answered: 1 week ago

Question

=+a) Are these paired data? Why or why not?

Answered: 1 week ago