Question: Consider the following ARM assembly program AREA prog, CODE, READONLY ENTRY MOV RO , # 2 5 0 MOV R 1 , # 1 repeat
Consider the following ARM assembly program
AREA prog, CODE, READONLY
ENTRY
MOV RO #
MOV R #
repeat ADD RRR ASR#
TST RO #
SUBNE RO #
SUBEQ RO #
CMP RO #O
BGT repeat
halt halt
END
What is the value of R and R after executing the above program until reaching the B halt" instruction
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
