Below is a program with ARM Assembly. PC =

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

Below is a program with ARM Assembly. PC = 0x2000, Stack pointer sp = 0x400 (no heap or memory = 0x2000), no x2028 can be read (when in the corresponding row) What is the SP value and what dataset is in the stack base address 0x3F8?

Memory
Program (Instructions)
Address
Stack Memory
Ox400
OX3FC
0X3F8
OX3F4
OX3F0
0X3EC
OX3E8
OX3E4
0X3E0
OX3DC
OX3D8
OX3D4
OX3D0
OX3CC
Ox3C8
OX3C4
Ox3C0
OX3BC
OX3B8
Ox3B4
OX3B0
Ox2000
MOV RO,#2
SP-->
Ox2004
BL fun1
Ox2008
B ENDL
Ox200C LBL1 push {LR}
Ox2010
MUL RO,RO
Ox2014
ADD RO, #1
Ox2018
BL LBL2
Ox201C
POP {PC}
Ox2020
LBL2
push {LR}
Ox2024
MUL RO,RO
Ox2028
ADD RO, #1
Ox202C
BL LBL3
РOP (РC)
Ox2034 LBL3 push {LR}
Оx2030
Ox2038
ADD RO, #1
Оx203C
РОP (PC}
PUSH {LR}
Ox2040
fun1
Ox2044
BL LBL1
Ox2048
РОP (LR}
Ox204C
BX LR
Ox2050 ENDL
Lütfen birini seçin:
O A. SP =0X3F4, 0X3F8(adresi) = Ox202C
B. SP =0X3F4, 0×3F8(adresi) = 0x2048
C. SP =0X3F8, O×3F8(adresi) = Ox201C
D. SP =0X3F8, 0X3F8(adresi) = 0x2044
O E. SP =0X3FO, 0X3F8(adresi) = Ox2008
Transcribed Image Text:Memory Program (Instructions) Address Stack Memory Ox400 OX3FC 0X3F8 OX3F4 OX3F0 0X3EC OX3E8 OX3E4 0X3E0 OX3DC OX3D8 OX3D4 OX3D0 OX3CC Ox3C8 OX3C4 Ox3C0 OX3BC OX3B8 Ox3B4 OX3B0 Ox2000 MOV RO,#2 SP--> Ox2004 BL fun1 Ox2008 B ENDL Ox200C LBL1 push {LR} Ox2010 MUL RO,RO Ox2014 ADD RO, #1 Ox2018 BL LBL2 Ox201C POP {PC} Ox2020 LBL2 push {LR} Ox2024 MUL RO,RO Ox2028 ADD RO, #1 Ox202C BL LBL3 РOP (РC) Ox2034 LBL3 push {LR} Оx2030 Ox2038 ADD RO, #1 Оx203C РОP (PC} PUSH {LR} Ox2040 fun1 Ox2044 BL LBL1 Ox2048 РОP (LR} Ox204C BX LR Ox2050 ENDL Lütfen birini seçin: O A. SP =0X3F4, 0X3F8(adresi) = Ox202C B. SP =0X3F4, 0×3F8(adresi) = 0x2048 C. SP =0X3F8, O×3F8(adresi) = Ox201C D. SP =0X3F8, 0X3F8(adresi) = 0x2044 O E. SP =0X3FO, 0X3F8(adresi) = Ox2008
Expert Solution
steps

Step by step

Solved in 2 steps

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