Skip to content

CS401 Assignment 2 Solution Fall 2021

CS401 Assignment 2 Solution Fall 2021 CS401 Assignment 2 Solution 2022 CS401 Assignment Solution 2021, CS401 Assignment 2 solution 2021.

The assignment is submitted after the due date. The submitted assignment does not open or the file is corrupt. Strict action will be taken if the submitted solution is copied from any other student or from the internet. You should concern the recommended books to clarify your concepts as handouts are not sufficient. You are supposed to submit your assignment in .doc or Docx format.

Question No 1 CS401 Assignment 2

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 are030400789, then after 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.

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 Task 3 is completed then the control should go to the subroutine of Task 2, then Task 1, and at the end to the point where we initiate subroutine call.
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

CS401 Assignment 2 Solution Fall 2021 CS401 Assignment 2 Solution 2022 CS401 Assignment Solution 2021, CS401 Assignment 2 solution 2021.

error: Content is protected !!
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Kindly Disable Your Adblocker Extensions