Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 locations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions