Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LC3 Assembler program. Not in C or another language in Assembler language. I have asked this question multiple times and can not get the right

LC3 Assembler program. Not in C or another language in Assembler language. I have asked this question multiple times and can not get the right answer back. Please write a code in assembler starting at x3000 that takes the array of numbers starting at x7000 and puts them in order from smallest to largest as shown in picture below. Code should have something to do with loading registers and checking one to another to move up if it is smaller than the one its being compared to and son on until it is in the right order. Thank You

image text in transcribed

What to do: There will be 10 numbers stored contiguously in the computer at location x7000 . Write a complete LC-3 program, starting at location x3000, that will find the location of the smallest number and swap its location with the number in location x7000. For example, Suppose the following numbers are stored at location x7000: x7000 123F x7001 6534 x7002 300F x7003 4005 x7004 3F19 x7005 2DF6 x7006 1200 x7007 0042 x7008 12AA. x7009 54EF x7000 0042 x7001 6534 x7002 300F x7 x7004 3F19 x7005 2DF6 x7006 1200 x7007 123F x7008 12AA. x7009 54EF after the program is run, memory ory 7003 4005 would look like-( Note the smallest element occurred at location x7007: the program swapped the contents of location x7007 with location x7000 You should make NO assumptions about the numbers located at x7000. That is, there may be negative numbers and numbers may repeat

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago