Question: Please use assembly language x86-64to write a conv() function ,thanks! For this problem, you will implement a function conv) that computes the reversed dot product

Please use assembly language x86-64to write a conv() function ,thanks!

Please use assembly language x86-64to write a conv() function ,thanks! For this

For this problem, you will implement a function conv) that computes the reversed dot product of two arrays. In other words, given a pair of arrays x [n], h[n], it will return x[m] h[n - m - 1] m=0 The Specification The registers %rdi and %rsi will contain the base pointer of the two arrays, and %edx will contain the length of the arrays. Both arrays contain char values, i.e., one byte per value, each in the range [-128, 127 The register %al will carry the return value, the summation as described above. Your code will need to use the imul instruction. Note, however, there is no imulb instruction . As per the function call protocol, you may only use the scratch registers %rax, %rcx, %rdx, %rsi, %rdi, %r8, %r9, %r10 and %r11. You will submit: (a) [7 marks] an electronic copy of your conv.s assembly source. This code will be tested for correct- (b) (3 marks] a hard copy of your conv.s assembly source. Your source should be well documented, ness with a variety of inputs. so that any other programmer could read your code and understand it. Your documentation shall include a synopsis of the algorithm you used to perform the computation For this problem, you will implement a function conv) that computes the reversed dot product of two arrays. In other words, given a pair of arrays x [n], h[n], it will return x[m] h[n - m - 1] m=0 The Specification The registers %rdi and %rsi will contain the base pointer of the two arrays, and %edx will contain the length of the arrays. Both arrays contain char values, i.e., one byte per value, each in the range [-128, 127 The register %al will carry the return value, the summation as described above. Your code will need to use the imul instruction. Note, however, there is no imulb instruction . As per the function call protocol, you may only use the scratch registers %rax, %rcx, %rdx, %rsi, %rdi, %r8, %r9, %r10 and %r11. You will submit: (a) [7 marks] an electronic copy of your conv.s assembly source. This code will be tested for correct- (b) (3 marks] a hard copy of your conv.s assembly source. Your source should be well documented, ness with a variety of inputs. so that any other programmer could read your code and understand it. Your documentation shall include a synopsis of the algorithm you used to perform the computation

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!