Question: values dcd 2, 3, 6, 1, 8, 5, 6, 8 res1 fill 4 res2 fill 4 res3 fill 4 adr r9, values ; ***Make sure

values   dcd       2, 3, 6, 1, 8, 5, 6, 8
res1       fill       4
res2       fill       4
res3       fill       4
       adr       r9, values

       ;       ***Make sure your program works for all cases with 8 numbers***

       ;       task 1.1
       ;       Find out the highest value among these values and store the result to res1
     
       ;       task 1.2
       ;       modify the code of 1.1, so that the index of that value is stored in res2

       ;       task 1.3
       ;       Find out the second highest value among these values, store the result to res3
       ;       answer should be 6

There are three sub-questions in this problem. Please provide the code in ARM Assembly Language.

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ANSWER DATA SEGMENT ARR DB 23618568 LEN DW ARR res1 DB res2 D... View full answer

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