PROGRAM #2 CHECKING- POWER ON SELF TEST(POST)

if we put the 6'th bit ON (set to 1) the caps lock is turned on.On the AT,the POST during boot up goes and puts OFF(set to 0) this bit turning the CAPS LOCK off. Suppose we want the CAPS LOCK to be permanently ON so thatanything we type will always bi in capitals.The way to do this would be to have a routine which puts ON the CAPS LOCK key called before the timer routine in the ROM BIOS is called.

#include"dos.h"
void interrupt (*old)();
void interrupt new();
char far*scr=(char far *)0x417;
main()
{
old=getvect(0x08);
setvect(0x08,new);
keep(0,1000); } /* keep is an tsr stmt which keeps program in mem */
void interrupt new()
{
*scr=64;
(*old)();
}


Note:the above program just ON the CAPS LOCK key. if you want to break, u must restart the machine because it is kept in mem.

BACK



© 2002 mahesh kumar. Not All rights reserved. ;-)
Hosted by www.Geocities.ws

1