![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 21.04.2020 02:24 Lpryor8465
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](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:30, TheBurntToast
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:30, eddsworldfrantic
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
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 in other subjects:
![Konu](/tpl/images/cats/mkx.png)
Arts, 16.11.2020 22:10
![Konu](/tpl/images/cats/fizika.png)
Physics, 16.11.2020 22:10
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/en.png)
English, 16.11.2020 22:10
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.11.2020 22:10
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/fr.png)