Given the initial value in R0 = 0xAABBCCDD, determine R1, R2, R3 and R4 after executing the respective instruction, and

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Given the initial value in R0 = 0xAABBCCDD, determine R1, R2, R3 and R4 after executing the respective instruction, and

Post by answerhappygod »

Given the initial value in R0 =
0xAABBCCDD, determine R1, R2, R3 and R4 after executing the
respective instruction, and the final value of R0 after executing
the following assembly code.
LDR R0, #0xAABBCCDD
AND R1, R0, #0xFF000000 ;R1 after
executing this line
AND R2, R0, #0x00FF0000 ;R2 after
executing this line
AND R3, R0, #0x0000FF00 ;R3 after
executing this line
AND R4, R0, #0x000000FF ;R4 after
executing this line
MOV R0, R1, LSR #24
ORR R0, R2, LSR #8
ORR R0, R3, LSL #8
ORR R0, R4, LSL #24
;R0 after executing the Code
R0 =
R1 =
R2 =
R3 =
R4 =
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply