View Full Version : TSR's in dos ????

12-27-2001, 11:44 AM

id like to know how to turn a reboot program of mine into a TSR for dos thats called when the user presses "CTRL-R"

Optional: if you what just tell me and maybe i could mail you the source for the reboot program (in "non-TSR" form)

note: you can email me at linuxdude132@yahoo.com

12-28-2001, 12:28 AM
In C you have to use the keep() function or use the DOS Terminate and Stay Resident function via int 21h. You will want to write your TSR in assembly. It is very hard to determine the length of your code in C. In assembly you just create a dummy segment and everything is relative to it.

Check out Randall Hyde's art of assembly language programming book for info on TSRs. The concept is very simple but there is a lot involved: DOS re-entrancy issues, safe/correct loading/unloading, and much more.

His book is on the net - look it up on search engine to find the site.