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...
icon
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
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
3.
Draw the memory map for 8 bytes starting at 0x2000_0030 as shown in the form
given above.
Transcribed Image Text:3. Draw the memory map for 8 bytes starting at 0x2000_0030 as shown in the form given above.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY