Question: Question 1 : change program 1, replacing the last LSL instruction with ADD r2, r1, r1, LSL #2 and return the simulation. What value is

Question 1 :
change program 1, replacing the last LSL instruction with
ADD r2, r1, r1, LSL #2
and return the simulation. What value is in register r2 when the code reaches the infinite loop (the B instruction)? What is the ADD instruction actually doing?
AREA Progl, CODE,READONLY ENTRY MOV rO, #0x11 ; load initial value LSL r1,ro, #1 ; shift 1 bit left LSL r2, r1, #1 ; shift 1 bit left stop B stop i stop program END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
