Question: Please write a RISC - V program that when given an integer ( 3 2 - bit ) array arr = { 3 0 ,
Please write a RISCV program that when given an integer bit array arr in data directive, returns the array in reverse order ie the first number is now the last one You can assume that the array always contains an even number of elements. Your code should include the following procedures:
Write a main procedure to perform the following tasks:
Call an input procedure to write the given array values into a certain continuous memory starting from x
Call a reorder procedure to reorder the array.
Call an output procedure to print the reordered array values in the console
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
