Enabling and Disabling the Keyboard

#include<stdio.h>
#include<conio.h>
#include<dos.h>

void main()
{
     clrscr();

     outportb(0x64,0xAD);    /*Code for disabling the KEYBOARD*/

     printf("Keyboard Disabled");

     delay(5000);

     clrscr();

     printf("Keyboard Enabled");

     outportb(0x64,0xAE);    /*Code for enabling the KEYBOARD*/

     getch();

}

0 comments:

Post a Comment