Category | Assignment | Subject | Computer Science |
---|---|---|---|
University | University Of West London | Module Title | CP40053E Computer Architecture |
The assessment consists of three elements.
- In elements 1 and 3, complete an online multiple-choice quiz on Blackboard.
- In element 2, implement a number of programs. For each program, you need to submit source code as an x86 assembly file (.asm), as specified in the task description.
For the element 2 programming submission, please note the following:
1. Any code you write must be in 86 assembly (as introduced during lecture and seminars).
2. Your code should be correct, maintainable and readable:
a. Code should be reasonably commented. Your student ID must be evident in the code comments for each program.
b. Use of whitespace (tabulators, empty lines, etc.) should be conducive to reading the code.
3. All code in your solutions must be your own.
4. You can develop your submission in whatever environment you like (Windows, Macintosh, Linux, you name it), but a common standard is necessary. Therefore, it is a significant requirement that your submission executes correctly in the respective environment. For assembly, this is the x86 assembly environment in Visual Studio 2019 or Visual Studio 2022 as provided on UWL’s computers. Remote access to both is available via Apps Anywhere.
5. Some parts of the assessment may stipulate strict submission structure (user input, program output, etc.) and identifier values (e.g., names for files, folders, functions, etc.). Meeting these requirements to the letter forms a significant part of the grade.
Title: Quiz
Task details: These are online tests covering the topics discussed in this module to date. The tests will contain a number of short questions.
Title: Assembly programming
Task details: Implement a module containing four functions:
Program 1: Calculate the greatest common divisor of two numbers in x86 assembly
Write a program in x86 assembly that outputs the greatest common divisor of two given values specified in the assembly code as exit code. (Extra marks if the result is printed to the console.) Use the Euclidean algorithm introduced in the lecture.
Write a short (one paragraph, 150 words max.) explanation how the Euclidean algorithm was implemented. In the document, provide a screenshot showing your code and the corresponding output.
Program 2: Sum up odd numbers in x86 assembly
Write a program in x86 assembly that adds up all odd numbers in a given range, specified in the assembly code, and outputs the sum as exit Code. (Extra marks if the result is printed to the console.)
Write a short (one paragraph, 150 words max.) explanation how the odd values were selected and how the sum of odd numbers was arrived at. In the document, provide a screenshot showing your code and the corresponding output.
Program 3: Divide your student number and print the result in the console
Write a program in x86 assembly that takes your student number, stored as an integer (NOT as a string), and divides it by 7. It should then be printed to the console. Print the result, rounded to the nearest whole number, on the console.
Writing your own code for converting an integer into the corresponding ASCII values is part of the task and should not be left to the operating system!
Write a short (one paragraph, 150 words max.) explanation how you achieved printing an integer to the console. In the document, provide a screenshot showing your code and the corresponding output.
Need assistance with your CP40053E Computer Architecture Assignment 1? Our professional assignment writing help services are here to simplify complex concepts and provide you with expert solutions. Whether it's understanding architecture principles or advanced design, we’ve got you covered. UK students can rely on our computer science assignment help for personalized support. Looking for guidance? Access assignment examples crafted by specialists and take the first step toward academic success today!
Let's Book Your Work with Our Expert and Get High-Quality Content