Question: using ARM assembly code and the basic raspberry pi 4 , help make code this selection sort Fill an array of size 2 5 with

using ARM assembly code and the basic raspberry pi 4, help make code this
selection sort
Fill an array of size 25 with 25 numbers using rand. snippet on how to create random numbers below. Print out the array then sort the array using selection sort (no credit will be given if used bubble sort)
Random code snippet
mov r0, #0
bl time //gets current time time(0)
bl srand //sets the seed for the puesdo random number generator
bl rand //calls the rand function
and r0, r0, #99//filters out the numbers to reasonable size without it you can get a 32bit number

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 Programming Questions!