Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No. 01 Semester: Spring 2016 CS609 – System Programming Due Date: 12/05/2016


Views: 6967

Attachments:

Replies to This Discussion

 also

graded activities me ak sath itna sb akatha aa gia hy 

nai to abi ye ist assignment or ist quiz aya itna w8 krny k bad............

Write a TSR program in C that will clear all the contents of the screen and print your VU ID and Name (BC0000000-Name) at the center of the video text memory available at 0xB8000000 whenever Alt+Ctrl+D combination is pressed from keyboard. Note that you have to take the backup of the contents of video text memory before clearing the screen. And, whenever Alt+Ctrl+R combination is pressed from the keyboard, all the contents of video text memory should be restored. any idea...?

  # include <dos.h>    

char far* CtrlAltPtr=(char far*)0x417;
void interrupt (*OldKeyboardInterruptFunction)( );

void interrupt NewKeyboardInterruptFunction( );

int main( ) { OldKeyboardInterruptFunction=getvect(0x09);
setvect(0x09,NewKeyboardInterruptFunction);
keep(0,(_SS+(_SP/16)-_psp));
return 0; }
/**********************************************///------------------ NewKeyboardInterruptFunction( )

------------------//
/******************************/void interrupt NewKeyboardInterruptFunction( )
{ *CtrlAltPtr=0x0C;
(*OldKeyboardInterruptFunction)( ); } [/Code]

ye kia ha ???

Idea example:  This will clear the contents of the screen.

 

unsigned char far *scr=(unsigned char far*)0xb8000000; //corrected

void main()

{

     int i;  

     for (i=0;i<2000;i++) 

     {

          *scr=0x20; 

          *(scr+1)=0x07;

          scr=scr+2;

     }

}

Plz any idea

ye code ks software mei type krna hy??? plz tell me..... .c konsa format hota hy???

need idea

coding ms word mein krni hy ya koi aur software mein???

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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