Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

c. Will leaders rotate periodically?

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago