Question: Assuming that the register ( 1 / 2 ) rdi contains the address of an array of 6 4 - bit integers and
Assuming that the register rdi contains the address of an array of bit integers and the register rsi contains the size of the array, write some x assembly code that returns the index of the largest element of the array. The result should be placed in the rax register. For example, if the array A pointed to by rdi contains the values and and rsi contains because there are elements, then your code should place in rax since mathrmA is the largest value.
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
