Write an x86-64 procedure/function calledcomputePolynomial that does thefollowing:
- 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!
- It computes the value of (coefX * x5) – (coefY * y3) + (coefZ *z), and returns the result in the appropriate register.
- Be sure to do the proper stack set up work at the beginning andend
OROR