Question: (b) Write an ARM assembly language program to find the average to the nearest integer), maximum, and minimum marks of a class quiz. The class

 (b) Write an ARM assembly language program to find the average

to the nearest integer), maximum, and minimum marks of a class quiz.

(b) Write an ARM assembly language program to find the average to the nearest integer), maximum, and minimum marks of a class quiz. The class has only 16 students. Use only post-index addressing in your codes. You may assume that the marks are defined as follows: (15 marks) Marks DCD 30, 40, 50, 60, 70, 80, 90, 33, 48, 65, 89, 90, 45, 99, 20, 66 (c) We have the following C language code to implement nested loop: for(i=1;i5;j--) { ... /*loop body * It was implemented in the following manner (see Figure 3) in ARM assembly language. However it was found to be inefficient. Use your knowledge of loop in ARM assembly language to optimize the program. (10 marks) OutLoop MOV r1, #1 CMP r1, #10 BGT OutDone MOV 12, #20 CMP r2#5 BLE InDone InLoop i=1 ;i10. finish outer loop j=20 j>5? ifj

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!