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 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 19:10
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 1
question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
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
History, 28.07.2019 11:00