Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HIGH RATING FOR CORRECT ANSWER. ASSEMBLY CODING Write a subroutine called PRUNE to search an array called raw_measurements that contains 16-bit unsigned integers and exclude
HIGH RATING FOR CORRECT ANSWER. ASSEMBLY CODING
Write a subroutine called PRUNE to search an array called raw_measurements that contains 16-bit unsigned integers and exclude the elements that are less than a given value called Min and the elements that are more than a given value called Max. Store the remaining measurements in an array called pruned_measurements. The length of the array is variable and it ends with $FFFF. Example: if raw measurements = {255, 600, 9000,0, 1700, 432, 8765, 50, $FFFF}, Max = 500, and Min = 60, pruned_measurements = {255, 432, $FFFF}. The starting address of raw_measurements and pruned measurements are passed by registers X and Y, respectively. Max and Min are two memory locations. Write a subroutine called PRUNE to search an array called raw_measurements that contains 16-bit unsigned integers and exclude the elements that are less than a given value called Min and the elements that are more than a given value called Max. Store the remaining measurements in an array called pruned_measurements. The length of the array is variable and it ends with $FFFF. Example: if raw measurements = {255, 600, 9000,0, 1700, 432, 8765, 50, $FFFF}, Max = 500, and Min = 60, pruned_measurements = {255, 432, $FFFF}. The starting address of raw_measurements and pruned measurements are passed by registers X and Y, respectively. Max and Min are two memory locationsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started