Question: Data is stored in memory as follows: Address M [ X 6 ] M [ X 6 + 8 ] M [ X 6 +

Data is stored in memory as follows:
Address M[X6] M[X6+8] M[X6+16] M[X6+24] M[X6+32]
Data 450871562363534
Using just LDR and STR, write ARM V8 assembly that will sort the data from lowest to highest (i.e., the smallest value should be in the smallest memory location). The base of the array is stored in register X6.
You may use no more than ten lines, you may not write to any memory address other than the above, and no more than three registers can be modified (including X6).
Note: you do not need to write a general sort program. Just a block of code which wiData is stored in memory as follows:
Address M[X6] M[X6+8] M[X6+16] M[X6+24] M[X6+32]
Data 900971942723144
Using just LDR and STR, write ARM V8 assembly that will sort the data from lowest to highest (i.e., the smallest value should be in the smallest memory location). The base of the array is stored in register X6.
You may use no more than ten lines, you may not write to any memory address other than the above, and no more than three registers can be modified (including X6).
Note: you do not need to write a general sort program. Just a block of code which will sort the particular data given!ll sort the particular data given!

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!