Question: Consider the following ARM assembly program AREA prog, CODE, READONLY ENTRY MOV R 0 , # 2 5 0 MOV R 1 , # 1

Consider the following ARM assembly program
AREA prog, CODE, READONLY
ENTRY
MOV R0, #250
MOV R1, #1
repeat ADD R1,R1,R0,ASR#3
TST R1,#1
SUBNE R0,#61
SUBEQ R0,#91
CMP R0,#0
BGT repeat
halt B halt
END
What is the value of R0 and R1 after executing the above program (until reaching the"B halt" instruction)?
R0=0x____, R1=0x____
How many times is the ADD instruction executed? ____

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!