Question: Write an ARM assembly subroutine called negative that converts any positive element in the array into a negative value, and write the ARM main code
Write an ARM assembly subroutine called negative that converts any positive element in the array into a negative value, and write the ARM main code to test your subroutine. Also, let your subroutine count the number of elements found in the array and save it in RO. Test your code with the following data: ARY DCD 2, -51, 3, 6, 23, 1, -79 Requirements: Parameter: Put in RO = Array starting address. > Returned value: o RO = the count of the array o ARY (converted to negative values) Write an ARM assembly subroutine called negative that converts any positive element in the array into a negative value, and write the ARM main code to test your subroutine. Also, let your subroutine count the number of elements found in the array and save it in RO. Test your code with the following data: ARY DCD 2, -51, 3, 6, 23, 1, -79 Requirements: Parameter: Put in RO = Array starting address. > Returned value: o RO = the count of the array o ARY (converted to negative values)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
