Write Assembly Function Find Minimum Number Array N Integers Inputs Address Array Number N Q37113951

  1. Write an assembly function to find the minimum number in anarray of N integers. The inputs are: the address of an array andthe number N; the output is the minimum value in this array. Please1) Draw the stack frame of this function; and 2) implement thefunction in assembly and comment each line.

assembly code must be written in AT&T 64 bit format

an example below:

andq %rdx, %r8 ; x = mask & x

orq %r8, %rax ; result = x | result


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.