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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Share your solutions here!

+ 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: 3573

.

+ 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)

Attachments:

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.

 

“How to Join Subject Study Groups & Get Helping Material”

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

 

Share below link with friends for solution & Discussion. A Single link for help in your education.

http://bit.ly/vucodes

 

Site Overview | Assignment Solutions | Past Papers |Site Features

Tariq bhai please share idea of solution.

CS401 Assignment#03 Complete Solution Spring 2019

Link below 

CS401 Assignment#03 Complete Solution Spring 2019

Q: Write assembly language (Terminate and Stay Resident) program that will print your complete VUID (only when specific timer ticks are lapsed) by hooking Timer Interrupt.         (20 Marks)Q: Write assembly language (Terminate and Stay Resident) program that will print your complete VUID (only when specific timer ticks are lapsed) by hooking Timer Interrupt.         (20 Marks)

Anyone please discuss solution.

Anyone please discuss solution.

cs401 assignment solution.

[org 0x0100]

jmp start

oldisr: dd 0 ; space for saving old isr

; keyboard interrupt service routine

kbisr:

push ax

push es

mov ax, 0xb800

mov es, ax ; point es to video memory

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

cmp al, 0x11 ; has the 'w' key pressed

jne nomatch ; no, go to nomatch

mov byte [es:0], '1' ; yes, print 1

mov byte [es:2], '5' ; yes print 0

jmp exit ; leave interrupt routine

nomatch:

pop es

pop ax

jmp far [cs:oldisr] ; call the original ISR

exit

mov al, 0x20

out 0x20, al ; sent EOI to PIC

pop es

pop ax

iret ; return from interrupt

start:

xor ax, ax

mov es, ax ; point es to IVT base

mov ax, [es:9*4]

mov [oldisr], ax ; save offset of old routine

mov ax, [es:9*4+2]

mov [oldisr+2], ax ; save segment of old routine

cli ; disable interrupts

mov word [es:9*4], kbisr ; store offset at n*4

mov [es:9*4+2], cs ; store segment at n*4+2

sti ; enable interrupt

mov dx, start ; end of resident portion

add dx, 15 ; round up to next para

mov cl, 4

shr dx, cl ; number of paras

mov ax, 0x3100 ; terminate and stay residant

int 0x21

sir is mein changings karni hain? taky sab ka same nah ho...copy paste lagy ga esay to

Sir none of the given solutions is according to the given requirements.We can not print our VUID after a lapse of certain tickcounts.First the tickcount will start printing and after the lapse of certain number of counts the VUID must be printed and at the same time the portion of the program should remain resident.

[org 0x0100]

jmp start


oldisr: dd 0 ; space for saving old isr

; keyboard interrupt service routine

kbisr:

push ax

push es

mov ax, 0xb800

mov es, ax ; point es to video memory

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

cmp al, 0x11 ; has the 'w' key pressed

jne nomatch ; no, go to nomatch

mov byte [es:0], '1' ; yes, print 1

mov byte [es:2], '5' ; yes print 0

jmp exit ; leave interrupt routine

nomatch:

pop es

pop ax

jmp far [cs:oldisr] ; call the original ISR

exit

mov al, 0x20

out 0x20, al ; sent EOI to PIC

pop es

pop ax

iret ; return from interrupt

start:

xor ax, ax

mov es, ax ; point es to IVT base

mov ax, [es:9*4]

mov [oldisr], ax ; save offset of old routine

mov ax, [es:9*4+2]

mov [oldisr+2], ax ; save segment of old routine

cli ; disable interrupts

mov word [es:9*4], kbisr ; store offset at n*4

mov [es:9*4+2], cs ; store segment at n*4+2

sti ; enable interrupt

mov dx, start ; end of resident portion

add dx, 15 ; round up to next para

mov cl, 4

shr dx, cl ; number of paras

mov ax, 0x3100 ; terminate and stay residant

int 0x21

Where is it to be displayed?

does any one have the correct solution? Kindly share

RSS

Latest Activity

+ M.Tariq Malik liked + M.Tariq Malik's discussion CS712 Distributed DBMS Complete Handouts In PDF
3 minutes ago
+ M.Tariq Malik's discussion was featured
3 minutes ago
Biya posted a discussion
3 minutes ago
+ M.Tariq Malik left a comment for Fruit Cake
4 minutes ago
+++Mahoo+++ replied to +++Mahoo+++'s discussion Famous Logos With a Hidden Meaning(special for adeena)
4 minutes ago
+ ! ! ! ! Noor E Kayenat replied to +"Certified Gangster"++'s discussion Hosla
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + "AS"'s discussion Nibhana Kis Ko Kehty Hai ...
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + "AS"'s discussion Hum Mutmaein Buhat Hai...
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked + "AS"'s discussion Wo jo Khuwahishat...
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked Biya's discussion Itnaa Karo . . ..
5 minutes ago
+ M.Tariq Malik added a discussion to the group CS712 Distributed DBMS
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked Biya's discussion Golden Words. .
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked +"Certified Gangster"++'s discussion Hosla
5 minutes ago
+ ! ! ! ! ! ! ! ! ! AG liked Biya's discussion KhobSorut Nasihaat :)
5 minutes ago
Biya liked + "AS"'s discussion Hum Mutmaein Buhat Hai...
6 minutes ago
Biya liked + "AS"'s discussion Wo jo Khuwahishat...
6 minutes ago
+ M.Tariq Malik replied to Biya's discussion KhobSorut Nasihaat :)
27 minutes ago
+ M.Tariq Malik liked Biya's discussion KhobSorut Nasihaat :)
27 minutes ago
+ M.Tariq Malik replied to +"Certified Gangster"++'s discussion Hosla
28 minutes ago
+ M.Tariq Malik replied to Biya's discussion Golden Words. .
28 minutes ago

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

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