URGENT PLEPASE HELP PLEASE Write a non-recursive RISC-V procedure average to find the average of all elements of an arr
Posted: Fri May 20, 2022 6:53 pm
URGENT PLEPASE HELP PLEASE
Write a non-recursive RISC-V procedure average to find the
average of all elements of an array of
integers. The procedure should pass the necessary values (array
address and size) via standard
registers. The procedure should also return the found maximum via a
standard register. Then
write a program that initializes an integer array allocated at
address 500 to the following
values:152,-299,-11,and 68 and calls the average procedure to
find its maximum. At the end of the
program the returned maximum should be stored in register s0.
Write a non-recursive RISC-V procedure average to find the
average of all elements of an array of
integers. The procedure should pass the necessary values (array
address and size) via standard
registers. The procedure should also return the found maximum via a
standard register. Then
write a program that initializes an integer array allocated at
address 500 to the following
values:152,-299,-11,and 68 and calls the average procedure to
find its maximum. At the end of the
program the returned maximum should be stored in register s0.