Question: please provide me the complete solution and make sure to add this code to the code that you will provid to me LDR R 0

please provide me the complete solution and make sure to add this code to the code that you will provid to me LDR R0,=arr ; address of array
LDR R1,[R0], #4 ; array size arr[0], r0+4=> arr[1]-> it is actual array address
MOV R2, #0 ; i -> index of node
MOV R10, R0 ; store array address, because sort procedure change the address and size
MOV R11, R1 ; store array size, because sort procedure change the address and size
BL sort ; call sort procedure
; restore to the original registers
MOV R0, R10
MOV R1, R11
MOV R4, #3
BL find ; check whether 3 in min heap
MOV R4, #12
BL find ; check whether 12 in min heap
dead ; then go to the dead loop and finish
B dead
arr
DCD 5,4,6,3,2,9; arr[0]-> size, arr =[1...size]
END

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