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

Assignment No. 01 Semester: Fall 2014 System Programming-CS609 Total Marks: 20 Due Date: Nov 20, 2014

Question 1:                                                                                                                               Marks 10     

 

Write a C program that should write the value of 'w' in the keyboard buffer whenever the letter 'a' is pressed from keyboard.

 

Question 2:                                                                                                                               Marks 10     

 

Write a program that fills the entire screen by characters ‘fb’. Then after pressing 9 from keyboard, replace all b’s on screen with character 9.

+ Click Here To Join also Our facebook study Group.

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


See Your Saved Posts Timeline

Views: 10810

.

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

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

Replies to This Discussion

well

Please post some hints to solve this assignment 

For:

Question 1:

See lecture 5

For:

Question 2:

See lecture 6

thnx zakki

Write a C program that should write the value of 'z' in the keyboard buffer whenever the letter 'a' is pressed from keyboard.
#include
#include
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 IP, unsigned int CS, 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 IP, unsigned int CS, unsigned int flags )

{
if (*(((char*)&AX) + 1) == 0x4F )
{
if (*((char*)&AX) == 0x1E)
*((char*)&AX) = 0x2C;
}
else
(*oldint15)();

}

is programe me Z ke jga W ke value place karne hy just

ya,

the same example is at page 44 of handout.

--------------------------------------------------------

Q1:

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.

Solution Description 

yes there is we need to Just Change The Value Of AX register

if  A is pressed Scan Code 1E will be go to change SCII code 

and we changed it hre with the Value OF W that is 0x11  

11 is HEx (scan Code Value of W ) Thanks here we Also Solve Q2 Thanks again 

yeah right..

RSS

Latest Activity

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

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