Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No.3                                                Dated:Jul 24, 18

Dear Students,

Assignment No.3 has been uploaded; its due date is Tuesday, 31-July 2018.

Note 1: Assignment will not be accepted via email in any case. Upload your assignment on VU-LMS with in due date.

Note 2: All times on VU-LMS are according to Pakistan Standard Time (PKT)

Question: 1 [15 Marks]
You are required to write a TSR program that will print total number of characters in your name (including
spaces within complete name) on top left corner of screen once you will press first letter of your name from

For example let’s say your name is Muhammad Usman Jan, and your VUID is bc123456789

You will write code for TSR such a way that if you will press “m” (first letter of your name in lower case) ,
18 will printed on top left corner of screen .

You will submit code and a screen shot in word file.

Screenshot will contain the command to compile the code, Same screen shot will contain number of
characters printed on screen after pressing first letter of your name.

Note 1: You will use DOSBOX only to compile and execute your code.

Note 2: keep name of assembly file according to your VU id , i.e. if your VU id is BC123456789 , you will
keep name of the assembly code file as 23456789.asm i.e. you will use last 8 digits of your id for the code
file name.

Note 3: If the code or files names in the screen shot will not be according to your own VU id you will get zero

Note 4: No marks will be given if code will not be both correct & complete in all aspects.

Note 5: You will use your complete name which you have in VU-LMS account.

Note 6: Scan codes are given at the end in Figure 1, on page 3

Note 7: No marks will be given, if above instructions will not be followed exactly

Example Run
Let say your id is BC123456789 , Your Name is Muhammad Usman Jan
Your screen shot will look like this

Note: No need to draw the red circle, this is for student’s understanding only.

Views: 11354

Replies to This Discussion

es assignmnet ko bas DOsbox mn he bnana haii

CS401 -  Assignment#3 - Solution with explanation...

anyone please discuss about this assignment .... many of the students have no clue how it will be done .. so please everyone discuss it please

[org 0x0100]
mov bl,48 ; 0 mov in bl
mov ah,01 ; to take input
int 21h ; to print
inc bl
cmp al,20h ; compare al with input char 20h for space
je b
loop k
mov dl,bl
mov ah,02 ; print value contain dl
int 21h

this is not working brother, after the execution of .com file in dosbox there is nothing happeing. not even "M:\\" ....

top pr number nhi a rha left side pr koi guide ker de kya masla hai


muj se to itna bhi nei ho raha 

CS401 -  Assignment#3 - Solution with explanation...

To write your name and than press space button to print your name and no of characters on screen
To write your name and than press space button to print your name and no of characters on screen

no of char are 9 including space

this is incorrect. the number should be displayed at the top left corner


© 2022   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service