Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, haydonmetzger
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data. b. define the requirements for backing up data. c. define the requirements for storing data. d. define the requirements for transmitting data.
Answers: 2
image
Computers and Technology, 22.06.2019 22:00, bbysl15
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
image
Computers and Technology, 22.06.2019 23:00, nicog94
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, HarryPotter10
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
Do you know the correct 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
English, 10.09.2020 01:01
Konu
Mathematics, 10.09.2020 01:01
Konu
English, 10.09.2020 01:01
Konu
History, 10.09.2020 01:01
Konu
English, 10.09.2020 01:01
Konu
Biology, 10.09.2020 01:01
Konu
Geography, 10.09.2020 01:01
Konu
English, 10.09.2020 01:01
Konu
Biology, 10.09.2020 01:01
Konu
English, 10.09.2020 01:01