Question: Write an LC-3 assembly language program that determines the maximum and minimum values of an array. Your program should start at memory location x3000; the

Write an LC-3 assembly language program that determines the maximum and minimum values of an array. Your program should start at memory location x3000; the max and min values should be formatted (e.g., "Max = ...", etc.) and output to the console using the memory-mapped I/O registers (not the system traps). Test your program by executing it using the LC-3 simulator. The number of elements in the array should be specified in the memory location immediately following your program, and then the values in the array should follow this number. For this assignment, you should turn in a paper program listing and screen shot of your console output. Use appropriate formatting and comments to make your program easy to read and understand. Also include your name and a Register Dictionary at the beginning of your program. To simplify output formatting, you may assume that all of the values in the array are unsigned and less than ten (i.e. positive single digits). Use the following array data values when you run the program for the console I/O screen shot: 1,3,7,2,5,4,8,7,0,2.

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!