We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No.2                                                                                    Dated:Jan 12, 18

Dear Students,

Assignment No.2 has been uploaded; its due date is Thursday, 18- January -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 as according to Pakistan Standard Time (PKT)

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 23729


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Replies to This Discussion

Please share the code

share code plz

share code please

I have completed my assignment, it is working fine but i am not satisfied with me code. Is there anyone to help me with that?

share your code here we can see can correct together

command prompt me id type karty lekin nhi ho rah result nhi aa rah

CS401 Assignment no.2 Solution step to step


Share your assignment here i can see code if there is mistake i can do correct it

There is no mistake in code, but the methodology i have used is wrong in my thinking. I have used the code of displaying different functions of left and right shift keys from handsout, I have modified that code for my assignment solution. Is there any other methodology for solving assignment?

you have to use keyboard controller and interrupt chaining to display VU id as you will type it

kia ap is ko bna dy gy 

kbisr:  push ax

          push es
          mov ax, 0xb800

          mov es, ax            ; point es to video memory

          in al, 0x60             ; read a char from keyboard port

nextcmp1:cmp al, 0x32     ; has the M key pressed

          jne nextcmp2         ; no, try next comparison

          mov byte [es:di+2], 'M'    ; yes, print M

          add di,2 jmp exit    ; leave interrupt routine

nextcmp2: cmp al, 0x2E    ; has the C key pressed

                 jne nextcmp3   ; no, try next comparison

                 mov byte [es:di+2], 'C' ; yes, print C

                 add di,2 jmp exit ; leave interrupt routine

nextcmp3: cmp al, 0x02       ; has the 1 pressed

                jne nextcmp4 ; no, try next comparison

                mov byte [es:di+2], '1' ; print 1 add di,2

                jmp exit ; leave interrupt routine






This is the method i have used to print my id on screen, but i dont think that this methodology is correct.


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

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