Question: 1) Write a subroutine to clear bits 7, 5, and 3 of every element in an array in data memory. The array count and the
1) Write a subroutine to clear bits 7, 5, and 3 of every element in an array in data memory. The array count and the pointer to the array are passed in r16, and Z pointer. (10 points)
2) Write a subroutine to find the total number of elements of an array that are odd. The array count and pointer to the array (in program memory) are passed in r16 and Z, respectively. The result is returned in r20. (10 points)
USE AVR LANGUAGE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
