Question: Write a program Arm7 Assembly language program using Keil Vision version 4. Your program should contain three subroutines called Smallest, which store the smallest
Write a program Arm7 Assembly language program using Keil μ Vision version 4.
Your program should contain three subroutines called ‘Smallest’, which store the smallest value into memory address 0x4000 0000, ‘Largest’ that store the largest value into 0x5000 0000 and ‘Average’, which stores the remaining numbers into memory address 0x6000 0000 and calculates the average of the remaining 3 value. You are required to write all the subroutines used in this program
subroutine 1 : to store the smallest number into memory address 0x4000 0000
subroutine 2 : to store the largest number into memory address 0x5000 0000
subroutine 3 : to store the remaining numbers(5 , 7, 6) into memory address 0x6000 0000 and calculate the average of the remaining numbers and store them to R9.
data set : DCD 5 , 7, 9 , 3 , 6
expected output :
in memory address 0x4000 0000 , should contain the number “3”
in memory address 0x5000 0000 , should contain the number “9”
in memory address 0x6000 0000 , should contain the numbers “5 , 7, 6”
in register R9 , should contain the value "8”
Step by Step Solution
There are 3 Steps involved in it
Writing an ARM7 Assembly language program using Keil Vision requires a detailed code implementation which cannot be provided in its entirety in a sing... View full answer
Get step-by-step solutions from verified subject matter experts
