Welcome to the World of Programming

Welcome to the World of Programming

Search this blog

TSR(Terminate & Staying in Resedent)

This program goes under TSR(Terminate & Staying in Resedent)programming.

Tinkering With Keyboard
____________________

#include"stdio.h"
#include"dos.h"
void interrupt (*k)(void);
void interrupt show();
int i;
void main()
{
k=getvect(0x9);
setv
ect(0x9,show);
keep(0,500);
}
void interrupt show()
{
for(i=0;i<=3;i++)
(*k)();
}
__
Steps to execute -

1.
make an .exe file of this program.
2. run it from command Prompt.
3. then make any key stroke in that command Prompt ,you can see the difference..i.e after 1 key stroke it will display 4 characters of it(you can edit it).


4. then to fix it exit the cmd Prompt.


No comments:

Post a Comment