I have written a program which runs quite ok now I want to make it a memory resident one, that stays active in the background, letting the computer run other tasks(in dos mode). my program must perform a task in a specific time.
Any ideas?
You are talking of TSR programming (Terminate and Stay Resident) Doing this isn't that complicated but reaquires a lot of care. First of all you need to know about interrupts, interrupt service routines and the way they work. Next what you'll have to do is to write a service routine of your own and insert it on top of the existing routine. Refer to interrupt type of functions in C.
Once you have your routine and call sequencing in order you can use the keep() method of C to have it run in the background. Be warned that any mistake in the code can cause your system to hangup or misbehave.
Am sure, it would take a lot to run your first TSR program.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.