printf("TSR");
If you are talking about a terminate and stay resident DOS
program, the easiest way to write a TSR is to use a TSR toolkit,
which does all of the basic work for you. Otherwise, even to
describe the process would take too long (it can be quite
complex).