Write X86 64 Procedure Function Called Computepolynomial Following Passed Six 2 Byte Param Q37066832

Write an x86-64 procedure/function calledcomputePolynomial that does thefollowing:

  1. It is passed six 2 byte parameters, coefX, coefY, coefZ, x, y,and z by the procedure/function that calls it. computePolynomialreturns a 4 byte value. A C-language prototype of the functionis:

short computePolynomial(short coefX,short x, short coefY, short y, short coefZ, short z);

NOTE: insure that you are cognizant ofwhat register has which value in it!

  1. It computes the value of (coefX * x5) – (coefY * y3) + (coefZ *z), and returns the result in the appropriate register.
  2. Be sure to do the proper stack set up work at the beginning andend
    OR
    OR

Leave a Comment

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