Skip to content
VUBuddy

CS401 Assignment 2 Solution Fall 2021 by VUBuddy

Computer Architecture and Assembly Language Programming PDF 501 KBUpdated 23 Oct 2026
Assignment CS401 Assignment 2 Solution Fall 2021 by VUBuddy PDF 501 KB
vubuddy.com
Type
Assignment
Course
CS401 Computer Architecture and Assembly Language Programming
Size
PDF 501 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 501 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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.

All CS401 files →
CS401 Computer Architecture and Assembly Language Programming All CS401 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.