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


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

 

Question 1                                                                                                                                                                              (05 Marks)

Write Code of following in c.

1-      Connect interval timer to speaker and turned it on

2-      Turn off speaker by clearing least significant bits.

 

Question 2:                                                                                                                                            (10 Marks)

 

Write down a TSR program that disables the input of characters ‘b’ and ‘c’ from keyboard.

Scan codes of  'b' and 'c' are given below:

 ‘b’ = 0x30

‘c’ = 0x2E.

 

 

NOTE: Do not worry about the output and just concentrate on logic. There should be no error in your program. Do not put any query on MDB about this assignment, if you have any query then email at cs609@vu.edu.pk.

 

 

 

 

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

.

+ 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

code run nhi horhaaa???

_dos_setvect
_dos_getvect
_dos_keep
_chain_intr
spawnXXX

sahrish plz help me 

Errors..

kisi ne b nhi banai assignment 

Question # Complete Idea Solution:

#include
#include
unsigned char far * scr= (unsigned char far *)0x00400017; //Keyboard status byte
void interrupt (*oldint15) ( );
void interrupt newint15 (unsigned int BP, unsigned int DI, unsigned int SI, unsigned int DS, unsigned int ES, unsigned int DX, unsigned int CX, unsigned int BX, unsigned int AX, unsigned int CS, unsigned int IP,unsigned int flags);
void main ( )
{
oldint15 = getvect (0x15);
setvect (0x15, newint15);
keep (0, 1000);
}
void interrupt newint15( unsigned int BP, unsigned int DI, unsigned int SI, unsigned int DS, unsigned int ES, unsigned int DX, unsigned int CX, unsigned int BX, unsigned int AX, unsigned int CS, unsigned int IP, unsigned int flags)
{
if (_AH == 0x4F)
{
if ((_AL == 0x1F) && ((*scr) & 0x0c))
{
outport (0x43, 0xB4);
outport (0x42, 0xFF);
outport (0x42, 0x21);
outport (0x61, inport(0x61) | 3); //Connect to interval timer and and turn the speaker on
}


if (_AL == 0x18) //Check for character 'O'
{
outport (0x61, inport(0x61) & 0xFC); //Turn the speaker off
}
}
else
(*oldint15) ( );
}

yah kon se question ka solution ha ?

kon sy question ka answer hy reply plz bro

Q1 's Answer is on Page#6

Attachments:

c ki 2 files kasy submit hon gi??

zip kar k.

mere borland nhi chalta to notepad ya devc me kru?

RSS

Latest Activity

Moureen Max left a comment for iman noor
2 minutes ago
muhammad salman khan posted a status
2 minutes ago
Moureen Max left a comment for Nida Taj
2 minutes ago
Moureen Max left a comment for Syed Mohammad Ali
2 minutes ago
Moureen Max left a comment for Enamour Entity
3 minutes ago
Moureen Max left a comment for TwinKle...
5 minutes ago
Moureen Max left a comment for Shazia Lateef
5 minutes ago
Moureen Max left a comment for ناصر محمود
5 minutes ago
Moureen Max left a comment for Shagufta Maqbool
5 minutes ago
Moureen Max left a comment for Khan
5 minutes ago
Moureen Max left a comment for Arooba
6 minutes ago
Moureen Max left a comment for mubashir naqvi
6 minutes ago

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

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

.