CS401 - Computer Architecture and Assembly Language Programming Assignment No. 2 Solution Fall 2018 Due Date: January 29, 2018 

Assignment No. 2
Graded
Semester Fall 2018
Computer Architecture and Assembly Language Programming
CS401
Total Marks: 15
Due Date: 29th Jan 2019

Question: [15 Marks]
Write a TSR program that will print first letter of your Name on the screen (upper left corner). The letter will
be printed when you will press that letter on keyboard and how many times it will be printed depends on the
last digit of your VUID.
Explanation:
 Let’s say your name is Muhammad Usman, and your VUID is BC123456789. You will write code in
such a way that if you press M (first letter of name), then M will be printed on the screen, nine times
(which is the last digit of VUID)
 As another example, let’s say your name is Ali Raza, and your VUID is BC987654321. You will write
code in such a way that if you press A (first letter of name), then A will be printed on the screen, one
time (which is the last digit of VUID)
 If last digit of your VUID is zero, then you’ll print first letter of your name ten times
 You will use DOSBox to compile and execute your code
 Keep name of assembly file according to last eight digits of your VUID. For example, if your VUID is
BC123456789, you will keep name of the assembly code file as 23456789.asm
What to submit:
Your solution must be in a single Word file (DOC or DOCX) containing the following:
1) Complete code written in Word file
2) First screenshot that will show the command to compile the code
3) Second screenshot that will show the final output
Sample Output screenshots:
Suppose that student name is Umair Mujahid and VUID is BC125555554 and file name is assign.asm
Screenshot of Compilation step:
Final output screenshot will be like this:
NOTE: If the file name in the screenshots will not be according to your VUID, you will get zero marks.
BEST OF LUCK!

Tags: -, 2, 2018, 29, Architecture, Assembly, Assignment, CS401, Computer, Date:, More…Due, Fall, January, Language, No., Programming, Solution, and

Views: 138

Attachments:

SPONSORED LINKS

Latest Activities on Virtialians Social Network

Irfan Khan MSCS and Cinderella are now friends
4 hours ago
aisha and Muhammad Mursleen are now friends
11 hours ago
aisha and Shoaib Khan are now friends
yesterday
Wasi Zawar and Izzah Malik are now friends
yesterday
Sid commented on AaBeerα (MBA 2nd sems)admin's blog post ****Jumma Mubarak****
Friday
Sid liked AaBeerα (MBA 2nd sems)admin's blog post ****Jumma Mubarak****
Friday
AaBeerα (MBA 2nd sems)admin posted a blog post
Friday
Irfan Khan MSCS liked kashif Rfaique's discussion Admission
Friday
kashif Rfaique added a discussion to the group M.Sc. in Organizational Psychology
Friday
Farwa Sahar is now a member of Virtualians Social Network
Friday
AaBeerα (MBA 2nd sems)admin replied to AaBeerα (MBA 2nd sems)admin's discussion Issuance of First Voucher to continuing students (Spring, 2019)
Thursday
ٹمبکٹو posted a blog post
Thursday
AaBeerα (MBA 2nd sems)admin liked Zain Ali's discussion Allah behtar Tadbir aor chahat krny wala hai
Thursday
AaBeerα (MBA 2nd sems)admin liked Cinderella's blog post ouqt
Thursday
Zain Ali added a discussion to the group Islam
Thursday
Cinderella posted blog posts
Thursday
BSCS *Admin added a discussion to the group Spring 2019 Semester
Thursday
BSCS *Admin posted a discussion
Thursday
Younas Khan (MBA 02 Year) liked Irfan Khan MSCS's discussion Virtual University of Pakistan (VUP) Semester Spring 2019 Mid-Term Exam From Saturday June 22, 2019
Wednesday
Arooj un nisa liked AaBeerα (MBA 2nd sems)admin's discussion Virtual University opening doors to future jobs
Wednesday

SPONSORED LINKS

© 2019   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service