Given the initial value in R0 = 0xAABBCCDD, determine R1, R2, R3 and R4 after executing the respective instruction, and
Posted: Thu May 05, 2022 1:19 pm
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 =
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 =