Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I. Assume r0=0xAD10 0002 and r1=0x3FF8 0000, what will be the value of register r2 after executing the following instructions? MOV r2, #0 CMP r0,
I. Assume r0=0xAD10 0002 and r1=0x3FF8 0000, what will be the value of register r2 after executing the following instructions?
MOV r2, #0
CMP r0, r1
BGE ELSE
B DONE
ELSE: MOV r2, #2
DONE:
II. Consider the four addressing modes given below used by ARM7 along with an example of each.
a. Immediate ADD r2, r0, #5
b. Scaled register ADD r2, r0, r1, LSL, #2
c. Scaled register pre-indexed LDR r2, [r0, r1, LSL, #2]!
d. PC-relative BEQ 4000
List benefits and drawbacks of each ARM addressing mode.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started