CS401 Assignment 2 Solution Fall 2021 by VUBuddy
- Type
- Assignment
- Course
- CS401 Computer Architecture and Assembly Language Programming
- Size
- PDF 501 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 8 of 9. Download the file for all 9 pages.
WMIg3Q
CS401 ASSIGNMENT 2 SOLUTION FALL 2021
Due Date: 22 Dec 2021
Uploading Instruction:
Submit assignment only in .doc or docx format
Important Note:
The main assembly code should call a subroutine that performs Task 1, then another subroutine would be called to calculate Task 2. After performing Task 2, it should call a subroutine to calculate Task 3. When the Task 3 is
WMIg3Q
completed then the control should go to the subroutine of Task 2, then Task 1 and at end to the point where we initiate subroutine calling. Arithmetic series is a sequence of numbers in which each differs from the preceding one by a constant quantity. For example, the arithmetic series of ‘9’ can be calculated as follows:
9+8+7+6+5+4+3+2+1 = 45
Question
Write an assembly language program to perform the following tasks:
Task 1 - Find the largest digit in your VUID. Task 2 - Add the largest value to each index value and write it back at the respective index of the VUID. For example, if the numbers in VUID are 030400789, then after the task 2, the VUID should become 91291399161718. Task 3 - Find the arithmetic series of the largest digit found in task 1 and store it in the “dx” register as shown in the sample screenshot.
WMIg3Q
Showing the arithmetic series of the largest digit is 1C
7+6+5+4+3+2+1=28=1C
For using command to show complete VU ID in memory
m2 ds:103
VU ID in Memory is
09 07 07 09 0C 07 0B 08 0E
We will help you perfectly
Every assignment is change due to unique Student ID so Don’t Copy That is truly perfect step by step idea solution get help easily.
Related CS401 files
All CS401 files →- CS401 Highlighted Notes Set 2 Highlighted PDF 6.5 MB
- CS401 Final Term Solved Papers 2022-2024 by Aanaa Final term PDF 2.5 MB
- CS401 Quiz by Arsl Shani Quiz PDF 2 MB
- CS401 Searching Quiz Lectures 23-45 Quiz PDF 2.5 MB
- CS401 Quiz (Word) Quiz DOCX 58 KB
- CS401 MCQs Collection by Sonu Ilyas MCQs PDF 2.5 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.