Question: Consider the following ARM assembly program AREA prog, CODE, READONLY ENTRY MOV R 0 , # 1 0 1 MOV R 1 , # 1
Consider the following ARM assembly program
AREA prog, CODE, READONLY
ENTRY
MOV R #
MOV R #
repeat ADD RRRLSL#
TST R#
SUBNE R#
SUBEQ R#
CMP R#
BGT repeat
halt B halt
END
What is the value of R and R after executing the above program until reaching theB halt" instruction
Rx Rx
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
