CS401 – Assembly Language Assignment no.1 solved.pdf
Verified academic study resource for CS401 (Computer Architecture & Assembly Language) under the Computer Science at Virtual University of Pakistan. This PDF document (2026 Assignment & GDB Solution Guide) covers Active 2026 Semester Graded Activities spanning approximately 18 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS401 – Computer Architecture & Assembly Language
- Faculty
- Computer Science
- Format
- Type
- Assignment
- Coverage
- Active 2026 Semester Graded Activities
- Tags
- SOLVED, ASSIGNMENT
Always personalize your submission by rewriting explanations and renaming code variables. Keep Turnitin similarity under 19% and leverage the official 24-hour grace period with zero marks penalty.
What this file covers — CS401 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS401 – Assembly Language Assignment no.1 solved.pdf for free?
You can preview and download "CS401 – Assembly Language Assignment no.1 solved.pdf" (CS401 PDF, ~18 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs401-assembly-language-assignment-no-1-solved-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS401 file?
This document covers Active 2026 Semester Graded Activities across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS401 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS401 solved past papers and handouts verified for 2026 exams?
Yes. All CS401 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS401 – Assembly Language
Assignment No. 1
Student ID: bc230424977
Name: QALB-e-MOMIN
Question no 1:
You are required to write an assembly language program to perform the following
tasks:
a) Store the numeric part of your VUID in an array of numbers in memory.
b) Compute the sum of all the digits in your VUID and store it in memory.
Subtract each numeric digit of your VUID from the sum of all digits (computed in
part b) and store it in a 2nd array
Solution:
Code:
[org 0x0100]
jmp start
vuid db 2,3,0,4,2,4,9,7,7 ; VU ID digits
sum dw 0 ; To store sum
result db 9 ; Store result of subtraction
start:
mov ax, 0
mov si, 0
mov cx, 9 ; Loop counter for 9 digits
calculate_sum:
mov al, [vuid + si]
add ah, al
inc si
loop calculate_sum
mov [sum], ah ; Store final sum
mov si, 0
mov cx, 9
mov bl, ah ; Store total sum in BL
subtract_loop:
mov al, [vuid + si]
mov bh, bl
sub bh, al
mov [result + si], bh
inc si
loop subtract_loop
mov ax, 4c00h
int 21h
Screenshot:
https://whatsapp.com/channel/0029Vb4smybF6smx5admyo47
More CS401 files
- CS401 GDB 1 Solution 2022.pdf (PDF · Assignment)
- CS401 GDB Solution Spring 2022_vuanswer.com.pdf (PDF · Assignment)
- CS401 GDB Solved 100%.pdf (PDF · Assignment)
- CS401-Assignment-Solution-1-Spring-2022-By-Learning4Help-Waq (PDF · Assignment)
- Cs401 Gdb Solution.docx (DOC · Assignment)
- Cs401 Gdb spring 2023.docx (DOC · Assignment)
- cs401 gdb answer 2023.docx (DOC · Assignment)
- cs401 gdb solution Fall 2022.docx (DOC · Assignment)