Given the User Mode register and memory contents shown below, predict the register contents and, where appropriate, the flag states produced by each of the following ARM instructions. Assume little-endian memory storage and that the instructions are not sequential.
Given the User Mode register and memory contents shown below, predict the register contents and, where appropriate, the flag states produced by each of the following ARM instructions. Assume little-endian memory storage and that the instructions are not sequential.
Chapter5: Making Decisions
Section: Chapter Questions
Problem 1RQ
Related questions
Question
![4. Given the User Mode register and memory contents shown below, predict the register contents
and, where appropriate, the flag states produced by each of the following ARM instructions.
Assume little-endian memory storage and that the instructions are not sequential.
Register Value
Register Value
Address
Data
RO
Ox00001234
R8
Ох00000000
Ox00008050
Ох35
R1
OXFFFF0000
R9
Ох000000АЗ
Ox00008051
OXC3
R2
OXAB10FE10
R10
Ox00000000
Ox00008052
Ox40
R3
OX5555AAAA R11
Ox00000000
Ox00008053
OX4E
R4
Ox00000000
R12
Ox00000000
Ox00008054
OXB3
R5
Ox00008050
R13
Ох00000000
Ох00008055
OXFA
R6
Ox00008050
R14
Ox00008058
Ox00008056
Ох01
R7
Ox00000000
Ox00008057
Ох32
Ox00008058
Ox23
Ox00008059
Ох81
OX0000805A Ox33
OX0000805B
ОХА1
OX0000805C Ox07
NZ
a) CMP R6, RO
b) ORRS R1, R2, R1
Flags
Flags
Flags
R6
RO
R1
R2
c) LDR R1, [R5, #8]! R1
R5
d) MOV PC, LR
PC
LR
Flags](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fba68628d-5730-47db-93d2-fa6abf9ef8a3%2F3830ef27-2bcd-4abf-af8b-83901b195ab7%2Fjvnk69c_processed.png&w=3840&q=75)
Transcribed Image Text:4. Given the User Mode register and memory contents shown below, predict the register contents
and, where appropriate, the flag states produced by each of the following ARM instructions.
Assume little-endian memory storage and that the instructions are not sequential.
Register Value
Register Value
Address
Data
RO
Ox00001234
R8
Ох00000000
Ox00008050
Ох35
R1
OXFFFF0000
R9
Ох000000АЗ
Ox00008051
OXC3
R2
OXAB10FE10
R10
Ox00000000
Ox00008052
Ox40
R3
OX5555AAAA R11
Ox00000000
Ox00008053
OX4E
R4
Ox00000000
R12
Ox00000000
Ox00008054
OXB3
R5
Ox00008050
R13
Ох00000000
Ох00008055
OXFA
R6
Ox00008050
R14
Ox00008058
Ox00008056
Ох01
R7
Ox00000000
Ox00008057
Ох32
Ox00008058
Ox23
Ox00008059
Ох81
OX0000805A Ox33
OX0000805B
ОХА1
OX0000805C Ox07
NZ
a) CMP R6, RO
b) ORRS R1, R2, R1
Flags
Flags
Flags
R6
RO
R1
R2
c) LDR R1, [R5, #8]! R1
R5
d) MOV PC, LR
PC
LR
Flags
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning