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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:20, nina1390
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
image
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
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
image
Computers and Technology, 23.06.2019 21:20, nicki76
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
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
Physics, 16.11.2020 22:10
Konu
Mathematics, 16.11.2020 22:10