Question: PLEASE provide the solution to Task1 and Task2 in LC3 Assembly Language. Thank You Objective The purpose of this assignment is to write a program
Objective The purpose of this assignment is to write a program in LC-3 assembly language to sort an array of student records in descending order of scores. Additionally, the program should search the array (post sorting) to find the score of a student given a name. Details An array of student records is given at address x3500. Each record holds information about a student with two fields in this order: Score (ranges from 0 to 100) .Address of Name (the address of the memory location where this student's name is stored) Both fields take up 16-bits each so all elements of the array are of the same length. The end of the array of student records is indicated by the sentinel record which has a score of -1. The array itself is unordered meaning that the student records don't follow any ordering by score or name. A few example files are provided for you so you can make sure you are reading the correct input and producing the correct output. These files are: Students.asm, Joe.asm, Batman.asm,Wow.asm and Lookup.asm. Tasks: You have to complete two tasks Task 1: Sort the array in decreasing order of score. Highest score first. Note that the sorted array will be ordered by score but each record has an associated name that needs to go with the record. Here is an example test case with an array of 3 student records prior to sorting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
