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
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