You are here:

C++/TSR Logic!

Advertisement


Question

Sir i wish to write a tsr program  , ie i needs to kow what function in Turbo C++ should i needs to use in order to make the program stay resident?

Answer
Dear Saleem!

    Turbo C++ Provide a function called keep() a dos function driven by the interrupt number 0x31  to make the program stay resident !

general format !

void keep( unsigned char status , unsigned size);

The status  may always tke a value 0;
and the second arguement size  is the amount of memory to be reserved in memory  , say( 500 , 1000 , 2000 , etc..)
depend upon the size of the program

Regards
Prince M. Premnath

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise

Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)

Experience

More than 5 years

Education/Credentials
MCA

©2012 About.com, a part of The New York Times Company. All rights reserved.