Question: Need help to write code, please do not copy any other code and please comment on everything so i can understand Procedure - For this

Need help to write code, please do not copy any other code and please comment on everything so i can understand
Need help to write code, please do not copy any other code

Procedure - For this assignment you muat write al code in x86 _64 assombly (but you may uso/call c functions in your assembly codel. - Al code should be in one socise file only (asm program,atimp - You may reuse code from ary of my assembly examples for this assignment. 1. Create a function named "Compute" Which takes four G4-bit integer arguments (eg. W, X,Y,Z. - Your tunction shoukd accept the four arguments using appropriate corventions faee registers listed in the lecture stidesh. - Your function shousd NOT prist anything - it should ONLY perform the math, and retum the result via RAX; 2. Use a koop to compute the above function cver an array of size 16(A)0,A/1/, ni A A ) - Declare an array (n memory) cootaining the following 16 64-bit integer values: 2,15,14,7,5,2,18,3,3,45,12,4,55,17,108,9 - Use a loop to iterate over the elements of the array, and use your function (above) to calculate the value of every four consecutive array values. o. For example, fax=(A)Q)A(1)(A2)/A(3Mi)/B,thenrax=(A/2)A3)=(A[4]/ASB/B,then rax=(855+17)=(108/99)/8done 6. For each deration, print out the caiculation, the rosult, and start a newirn (Output based on the sample arrayk ((2=15)(14,7))/8=1((1514)(7/5))/8=26((14=7)=(5,2))/8=12(175)(21.18))/2=4({5517)(128)(9))/8=115 past the end of the array? e. Your output should exactly match the above form. 3. Comple and link your code so make an executable (asm_prograr) - Use insightul comments in the cocde to ilustrate what is happening at each step - The assembly source code fle should be named "asn, programusm" - The executable fle should be named "asm. orogram" - There should not be any fokder within the zip file. The zip file should only contain two Stes: "asm_program.asm" and "asm_program" - Your tunction sheuld take exactly four arugments o Include a header with the reievant information for assignments as defined in the sylabus 6. Pead the submiasion tequirements in the sylabus before submitting your work for gradiog

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