Draw the memory map for 8 bytes starting at 0x2000_0030 as shown in the form iven above.
Draw the memory map for 8 bytes starting at 0x2000_0030 as shown in the form iven above.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
![Prob 5.
Assume we have the following:
The memory map
task1
Address
Byte 0 Byte 1
Byte 2 Byte 3
0x83
0x2000_0000: 0x80 0x81 0x82
0x2000_0004: 0x84 0x85 0x86
0x87
0x2000_0008: 0x88 0x89 0x8A 0x8B
0x2000_000C: 0x8C 0x8D 0x8E
0x8F
Assembly function code snippets below:
PROC
LDRH r2, [ro], #2
STR r2, [r1, #0]
LDRH
r3, [ro], #2
r3, [r1, #4]
STR
BX
lr
ENDP
task1 (p1, p2);
task2 (p1, p3);
3. Calling of the above function in C with the following code:
void *p1 = (void *)0x20000000;
void *p2 (void *)0x20000020;
void *p3= (void *)0x20000030;
Here are the questions:
1.
we have a breakpoint at BX 1r).
2.
task2 PROC
Repeat the above for task2.
LDRSH r2, [ro, #2] !
STR r2, [r1, #0]
LDRSH r3, [ro, #2]!
STR r3, [r1, #4]
BX lr
ENDP
Determine the values of r2 and r3 just before returning from task1 (assume
2
M](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F29b2b324-5777-4e86-8949-1856ae23b158%2Fbaa5590e-ffea-4d4e-9497-3fce1780ea85%2F1ut6s1d_processed.png&w=3840&q=75)
Transcribed Image Text:Prob 5.
Assume we have the following:
The memory map
task1
Address
Byte 0 Byte 1
Byte 2 Byte 3
0x83
0x2000_0000: 0x80 0x81 0x82
0x2000_0004: 0x84 0x85 0x86
0x87
0x2000_0008: 0x88 0x89 0x8A 0x8B
0x2000_000C: 0x8C 0x8D 0x8E
0x8F
Assembly function code snippets below:
PROC
LDRH r2, [ro], #2
STR r2, [r1, #0]
LDRH
r3, [ro], #2
r3, [r1, #4]
STR
BX
lr
ENDP
task1 (p1, p2);
task2 (p1, p3);
3. Calling of the above function in C with the following code:
void *p1 = (void *)0x20000000;
void *p2 (void *)0x20000020;
void *p3= (void *)0x20000030;
Here are the questions:
1.
we have a breakpoint at BX 1r).
2.
task2 PROC
Repeat the above for task2.
LDRSH r2, [ro, #2] !
STR r2, [r1, #0]
LDRSH r3, [ro, #2]!
STR r3, [r1, #4]
BX lr
ENDP
Determine the values of r2 and r3 just before returning from task1 (assume
2
M

Transcribed Image Text:3.
Draw the memory map for 8 bytes starting at 0x2000_0030 as shown in the form
given above.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY