Question: Write an LC-3 machine language program that counts the number of positive and negative numbers in a sequence of numbers that are stored beginning at

 Write an LC-3 machine language program that counts the number of

Write an LC-3 machine language program that counts the number of positive and negative numbers in a sequence of numbers that are stored beginning at address x3200. The last number in the sequence is 0. The program's output must be the following 2 lines: Count of negative numbers: n Count of positive numbers: m Where n and m are the number of negative and positive numbers respectively. You can assume that n and m are always less than 10. Make sure that your program is clearly commented. There is no credit for programs that are not commented Save your program with bin extension and submit the file online

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!