Question: conditional execution; if-then-else: Write a ARM program that starts with three integer values (stored in three registers using MOV) and then determines the largest value

conditional execution; if-then-else:

Write a ARM program that starts with three integer values (stored in three registers using MOV) and then determines the largest value of the three and stores that value into a fourth answer register. Your program will work with any set of positive integers, so run your program with several different values in r1, r2, & r3. Make sure that you test a largest value in each register.

Example:

MOV R1, #34

MOV R2, #54

MOV R3, #21

MOV R0, #0 /* register to hold answer */

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 Databases Questions!