Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CCS 2 0 2 2 Computer Architecture & Assembly Language Project Description 2 0 2 3 - 2 0 2 4 Semester 2 Introduction This
CCS Computer Architecture & Assembly Language
Project Description
Semester
Introduction
This section presents an overview of the project requirements and constraints. Specific details are discussed later. This project is a teamwork project. Each team consists of two students.
Sorting is one of the most important operations in many applications. In this project, we are interested in implementing the sorting operation in Assembly language. The operation is to be implemented for selected words Names that are entered by the user.
This is an assembly language project; hence you are only allowed to use the emulator emu for your application. No GUI implementations are accepted. To enhance the graphical presentation, you may make use the videoRAM functionalities, in text mode, such as character attributes for foreground and background coloring and special ASCII characters for organizing the screen No further details for this issue are provided; we will leave it to your imagination. But note that a part of the grading is: how you present your results?
The rest of this document describes exact details of the functional requirements and some guidelines to their implementations. In addition, grading criteria hints are given to help you get the highest possible mark in case of not completing the full list of requirements. Please read it very carefully. For any inquiries, please return to the Lab instructor.
Functional Requirements
In this section we divide the project requirements into a set of functionalities. Each function is described separately, and then we provide an overall system description that combines all functions together.
At the beginning of any session, an opening screen should appear OpenMenu The user is asked to enter one of the following menu options:
To Select number and length of Names press
To Enter Names press
To Perform Ascending sorting
To Perform Descending sorting press
To Display sorted Names press
To Exit press
The user should press for selecting the number of names to be sorted and length of Names, for entering Names, for AscendingDescending sorting, for displaying sorted Names, and to exit the program.
Number and Length of Names
If the user selects in the previous menu OpenMenu the user will be allowed to select the number of names to be sorted and the length of Names. The system should allow to enter any number of names to be sorted and then ask the user to enter the length of Names.
Once number and length of Names are entered, the system should go back to OpenMenu.
The user can select again to change the previously entered data or select to enter the Names.
Entering Names
In this part, the system should ask the user to enter the data for each Name individually. We will leave it to you to decide about the messages used to enter the Names clearly. The data for each Name should be entered in a different row.
After entering the names the system should go back to OpenMenu where he is allowed to press to change number and length of names, to change names, to perform AscendingDescending sorting.
AscendingDescending sorting
If the user selects respectively in the OpenMenu, the AscendingDescending sorting
is performed.
Displaying sorted Names
If the user selects the user will be allowed to enter a certain number of Names, N to be displayed. The entered number has to be smaller or equal to the total number of Names.
The system should display the first N sorted names. We will leave it to you to decide about the how the names are displayed.
If the user presses a space bar, the program should return to the main menu OpenMenu
Summary
This section tries to connect all the previous components into one fully integrated system in a group of points:
Selecting the number of Names and length of Names is done by selecting from OpenMenu.
Entering Names is done by selecting from OpenMenu.
Performing the AscendingDescending sorting is done by selecting from OpenMenu.
If the user wishes to display the sorted names, he will be allowed to enter the number of names, N to be displayed. The system will display the first N names after sorting. This is done be selecting
If a user wishes to quit the program, heshe could press in OpenMenu. A quit is only accepted when the user is in the OpenMenu mode.
If the user selects the same option again from Open Menu, then heshe can change the previously entered data for that option.
WRITE full ASSEMBLY CODE THAT WILL PERFORM ABOVE TASK in simulator emu
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