What is SUB ADR LDM STRD BL.W? What does sp,sp,#0x28 mean? What does r3, r0, r1, r2 mean? What does my-strcpy and my_capitalise mean?

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
What is SUB ADR LDM STRD BL.W? What does sp,sp,#0x28 mean? What does r3, r0, r1, r2 mean? What does my-strcpy and my_capitalise mean?
Figure Q7 below shows a simple program written in C and complied in ARM
Keil.
Ox080006D4 B08A
33:
34:
35:
OX080006D6 A307
OX080006D8 CBOF
0×080006DA E9CD2308
0×080006DE E9CD0106
36:
0×080006E2 A901
O×080006E4 A806
0×080006E6 F7FFFDA9
37:
38:
OX080006EA A801
0×080006EC F7FFFDAD
SUB
const char a[]
char b(20]:
sp,sp,#0x28
"Hello world!";
ADR
r3,(pc)+0x20
2 @0×080006F4
r3,(r0-r3)
STRD r2,r3,(sp,#0x20]
STRD r0,rl,/sp,#0x18)
LDM
my_strcpy (a, b),
ADD
ADD
rl,sp,#0x04
r0,sp,#0x18
BL.W my_strepy (0x0800023C)
my_capitalize (b);
ADD
r0,sp,#0x04
BL.W my_capitalize (0×0800024A)
Figure 07
Transcribed Image Text:Figure Q7 below shows a simple program written in C and complied in ARM Keil. Ox080006D4 B08A 33: 34: 35: OX080006D6 A307 OX080006D8 CBOF 0×080006DA E9CD2308 0×080006DE E9CD0106 36: 0×080006E2 A901 O×080006E4 A806 0×080006E6 F7FFFDA9 37: 38: OX080006EA A801 0×080006EC F7FFFDAD SUB const char a[] char b(20]: sp,sp,#0x28 "Hello world!"; ADR r3,(pc)+0x20 2 @0×080006F4 r3,(r0-r3) STRD r2,r3,(sp,#0x20] STRD r0,rl,/sp,#0x18) LDM my_strcpy (a, b), ADD ADD rl,sp,#0x04 r0,sp,#0x18 BL.W my_strepy (0x0800023C) my_capitalize (b); ADD r0,sp,#0x04 BL.W my_capitalize (0×0800024A) Figure 07
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
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