Skip to content
VUBuddy

CS401P Assignment 1 Solution Fall 2026

Computer Architecture and Assembly Language Programming (Practical) Lesson 3: Lab-3 (Conditional/unconditional jumps and sorting) 20 marks No solution

About CS401P Assignment 1

CS401P Assignment No 1 for Fall 2026 is from Computer Architecture and Assembly Language Programming (Practical). It covers lesson 3: Lab-3 (Conditional/unconditional jumps and sorting), carries 20 marks and closed on VULMS on Thursday 5 November 2026. No solution was added before it closed.

Course
CS401P Computer Architecture and Assembly Language Programming (Practical)
Assignment
Assignment No 1
Semester
Fall 2026
Lesson
3: Lab-3 (Conditional/unconditional jumps and sorting)
Total marks
20
End date
Thu 5 Nov, 11:59 pm

What CS401P Assignment 1 asks

This assignment requires the development of an assembly language program using NASM to manipulate student identification data. Students must process their VUID by splitting it into specific segments and then perform a mathematical calculation on the resulting numeric parts. The final output involves demonstrating the program logic and verifying the results through the AFD debugger.

  1. Task 1. Splitting the Student ID

    Store your VUID as a single string in memory and programmatically split it into three distinct parts: the two-letter prefix, the first four numeric digits, and the remaining five numeric digits. These segments must be stored separately in memory as prefix, LHS, and RHS. You are strictly prohibited from hard-coding these parts.

  2. Task 2. Division of Numeric Parts

    Calculate the Greatest Common Divisor (GCD) of the LHS and RHS values obtained in the previous task using the repeated division method. If either value is zero, the BX register must be set to 0xFFFF; otherwise, store the final GCD result in the BX register.

What to submit
One MS-Word document containing the assembly language program and a screenshot of the AFD debugger showing the memory contents and the BX register value.
Topics covered
NASM assembly language Memory addressing String manipulation GCD algorithm AFD debugger Register operations

A summary of the assignment file, Fall 2026_CS401P_1.docx. Download the file for the full wording before you start.

Lesson covered

Lesson 3: Lab-3 (Conditional/unconditional jumps and sorting) CS401P · Computer Architecture and Assembly Language Programming (Practical)

The questions in this assignment come from this lesson. Read it in the CS401P handout before you open the assignment file, then practise it with the MCQs and past papers.

Solution

No solution was added before this assignment closed. The assignment file stays here so you can revise lesson 3.

Before you submit on VULMS

  1. 1 This assignment closed without a solution. Use the assignment file to revise lesson 3 before your exams.
  2. 2 Write the final answer in your own words. VU checks assignments for copying, and copied work gets zero marks.
  3. 3 Save your answer in the file type the assignment file asks for, and name it with your student ID, for example BC260012345.
  4. 4 Open the file once more to check it is not empty or corrupted, then upload it on VULMS before 11:59 pm on Thu 5 Nov.

Questions about this assignment

When is CS401P Assignment 1 due?

It closed on Thursday 5 November 2026. VULMS no longer accepts files for it, but the assignment stays here for revision.

Will a solution be added?

No. Solutions are written only while an assignment is open on VULMS, and this one closed on Thursday 5 November 2026. The assignment file stays here for revision.

Can I submit the solution as it is?

No. VU checks assignments for copying, and copied work gets zero marks. Use the solution to check your method, then write your own answer.

What file do I submit?

The assignment file says which file type to upload and lists any extra instructions from your instructor. Name the file with your student ID before you upload it on VULMS.

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.