subject

Write a subroutine that acts as a filter. It should compute the sum of the multiplication of data stored in the two arrays [a 1...aNl and [x...XN] in memory. The degree of the filter(N) is stored in register RO. The arrays a and x start from addresses OXS0H and 0X60H, respectively. (assume N-<8, and the numbers are unsigned integers.). The subroutine should return the result fx) in registers R3, R4 and R5 (the most significant byte in R5 and the least significant byte in R3). You may complete the rest of this code:
ORG 50H
ARRAY1: DB 10, 5, 120, 255, 240, 70, 40, 255;
array a
ORG 60H
ARRAY2: DB 5, 20, 2, 50, 100, 240, 250, 200; array x
ORG O MOV R0, #2H ;set the filter degree, N, here
(your code goes here)
Your code should be parametrizable i. e. It should work for any value of 13NS8. Using the same data above for arrays a and x, test your code on the following values of N: 2,4, 8

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Based on the current economic situation do you expect the employment demand for graduating engineers to increase or decrease? explain the basis for your answer. with a significant economic recovery, what do you think will happen to future enrollments in graduating engineering programs?
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
You know the right answer?
Write a subroutine that acts as a filter. It should compute the sum of the multiplication of data st...
Questions
question
Mathematics, 21.09.2021 23:30
question
Mathematics, 21.09.2021 23:30
Questions on the website: 13722360