+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Share your solutions here!
Tags:
+ 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)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.
Site Overview | Assignment Solutions | Past Papers |Site Features
Tariq bhai please share idea of solution.
CS401 Assignment#03 Complete Solution Spring 2019
Link below
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
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post